spatie/shiki-php
Highlight code using Shiki in PHP
2.4.0
24M downloads/mo
#390 most downloaded on Packagist
spatie/shiki-php
What this package is like to depend on
Last release 3 months ago
27 Apr 2026
Release timing varies
gaps range from 1 weeks to 1.7 years
Most releases are documented
notes for 22 of 25 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
25 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
25 releases · Jun 2021 to Apr 2026Releases
latest 25-
2.4.027 Apr 2026Release notes
Open source →What's Changed
- feat: Update shiki to v4 by @s3ththompson in #40
- fix: dual custom themes by @s3ththompson in #39
Full Changelog: 2.3.3...2.4.0
Release notes
Open source →What's Changed
- feat: Update shiki to v4 by @s3ththompson in https://github.com/spatie/shiki-php/pull/40
- fix: dual custom themes by @s3ththompson in https://github.com/spatie/shiki-php/pull/39
Full Changelog: https://github.com/spatie/shiki-php/compare/2.3.3...2.4.0
-
2.3.301 Feb 2026Release notes
Open source →What's Changed
- Fix: Support large code blocks by passing input via stdin instead of command-line arguments (#36) by @drewrichards
This fixes the
proc_open(): posix_spawn() failed: Argument list too longerror that occurred when highlighting large code blocks.Release notes
Open source →What's Changed
- Fix: Support large code blocks by passing input via stdin instead of command-line arguments (#36) by @drewrichards
This fixes the
proc_open(): posix_spawn() failed: Argument list too longerror that occurred when highlighting large code blocks. -
2.3.221 Feb 2025Release notes
Open source →What's Changed
- Removed PHP ^7.4 from requirements by @timoisik in https://github.com/spatie/shiki-php/pull/30
New Contributors
- @timoisik made their first contribution in https://github.com/spatie/shiki-php/pull/30
Full Changelog: https://github.com/spatie/shiki-php/compare/2.3.1...2.3.2
-
2.3.118 Feb 2025Release notes
Open source →Release notes
Open source →What's Changed
- fix: restore blade grammar file by @heywhy in https://github.com/spatie/shiki-php/pull/31
Full Changelog: https://github.com/spatie/shiki-php/compare/2.3.0...2.3.1
-
2.3.010 Feb 2025Release notes
Open source →Release notes
Open source →What's Changed
- feat: upgrade shiki to v2 by @heywhy in https://github.com/spatie/shiki-php/pull/29
Full Changelog: https://github.com/spatie/shiki-php/compare/2.2.2...2.3.0
-
2.2.206 Nov 2024Release notes
Open source →What's Changed
- fix: support string and object for
token.htmlStyleby @Barbapapazes in #28
Full Changelog: 2.2.1...2.2.2
Release notes
Open source →What's Changed
- fix: support string and object for
token.htmlStyleby @Barbapapazes in https://github.com/spatie/shiki-php/pull/28
Full Changelog: https://github.com/spatie/shiki-php/compare/2.2.1...2.2.2
- fix: support string and object for
-
2.2.105 Nov 2024Release notes
Open source →What's Changed
- fix: create shiki with dual themes by @Barbapapazes in #27
Full Changelog: 2.2.0...2.2.1
Release notes
Open source →What's Changed
- fix: create shiki with dual themes by @Barbapapazes in https://github.com/spatie/shiki-php/pull/27
Full Changelog: https://github.com/spatie/shiki-php/compare/2.2.0...2.2.1
-
2.2.005 Nov 2024Release notes
Open source →What's Changed
- feat: support (at least) dual themes by @Barbapapazes in #26
New Contributors
- @Barbapapazes made their first contribution in #26
Full Changelog: 2.1.0...2.2.0
Release notes
Open source →What's Changed
- feat: support (at least) dual themes by @Barbapapazes in https://github.com/spatie/shiki-php/pull/26
New Contributors
- @Barbapapazes made their first contribution in https://github.com/spatie/shiki-php/pull/26
Full Changelog: https://github.com/spatie/shiki-php/compare/2.1.0...2.2.0
-
2.1.029 Sep 2024Release notes
Open source →What's Changed
- Allow running in vanilla PHP projects by @timacdonald in #25
- Re-add
getAvailableLanguages,getAvailableThemes,languageIsAvailableandthemeIsAvailableby @s3ththompson in #23
New Contributors
- @timacdonald made their first contribution in #25
- @s3ththompson made their first contribution in #23
Full Changelog: 2.0.0...2.1.0
Release notes
Open source →What's Changed
- Allow running in vanilla PHP projects by @timacdonald in https://github.com/spatie/shiki-php/pull/25
- Re-add
getAvailableLanguages,getAvailableThemes,languageIsAvailableandthemeIsAvailableby @s3ththompson in https://github.com/spatie/shiki-php/pull/23
New Contributors
- @timacdonald made their first contribution in https://github.com/spatie/shiki-php/pull/25
- @s3ththompson made their first contribution in https://github.com/spatie/shiki-php/pull/23
Full Changelog: https://github.com/spatie/shiki-php/compare/2.0.0...2.1.0
-
2.0.019 Feb 2024Release notes
Open source →Upgrading
- The
getAvailableLanguages,getAvailableThemes,languageIsAvailableandthemeIsAvailablemethods have been removed. These are no longer necessary as Shiki 1.0 lazy loads these when necessary.
What's Changed
- feat: upgrade support to shiki v1 by @heywhy in #21
- Close code block by @mxsgx in #15
- Update README.md by @joshbruce in #17
- Fix badges by @erikn69 in #18
- feat: support tj/n by @axelrindle in #20
New Contributors
- @mxsgx made their first contribution in #15
- @joshbruce made their first contribution in #17
- @erikn69 made their first contribution in #18
- @axelrindle made their first contribution in #20
- @heywhy made their first contribution in #21
Full Changelog: 1.3.0...2.0.0
Release notes
Open source →Upgrading
- The
getAvailableLanguages,getAvailableThemes,languageIsAvailableandthemeIsAvailablemethods have been removed. These are no longer necessary as Shiki 1.0 lazy loads these when necessary.
What's Changed
- feat: upgrade support to shiki v1 by @heywhy in https://github.com/spatie/shiki-php/pull/21
- Close code block by @mxsgx in https://github.com/spatie/shiki-php/pull/15
- Update README.md by @joshbruce in https://github.com/spatie/shiki-php/pull/17
- Fix badges by @erikn69 in https://github.com/spatie/shiki-php/pull/18
- feat: support tj/n by @axelrindle in https://github.com/spatie/shiki-php/pull/20
New Contributors
- @mxsgx made their first contribution in https://github.com/spatie/shiki-php/pull/15
- @joshbruce made their first contribution in https://github.com/spatie/shiki-php/pull/17
- @erikn69 made their first contribution in https://github.com/spatie/shiki-php/pull/18
- @axelrindle made their first contribution in https://github.com/spatie/shiki-php/pull/20
- @heywhy made their first contribution in https://github.com/spatie/shiki-php/pull/21
Full Changelog: https://github.com/spatie/shiki-php/compare/1.3.0...2.0.0
- The
-
1.3.001 Jun 2022Release notes
Open source →What's Changed
- Allow php7.4 by @jonassiewertsen in https://github.com/spatie/shiki-php/pull/14
New Contributors
- @jonassiewertsen made their first contribution in https://github.com/spatie/shiki-php/pull/14
Full Changelog: https://github.com/spatie/shiki-php/compare/1.2.0...1.3.0
-
1.2.024 Feb 2022Nothing published for this version
-
1.1.722 Jul 2021 -
1.1.622 Jul 2021 -
1.1.512 Jul 2021 -
1.1.412 Jul 2021 -
1.1.311 Jul 2021Release notes
Open source →- Fix an issue where embedded languages weren't being highlighted correctly
-
1.1.211 Jul 2021 -
1.1.110 Jul 2021 -
1.1.010 Jul 2021 -
1.0.209 Jul 2021 -
1.0.109 Jul 2021 -
1.0.009 Jul 2021 -
0.0.208 Jul 2021Nothing published for this version
-
0.0.128 Jun 2021Nothing published for this version