PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 25
  1. 2.4.0 27 Apr 2026
    Release notes

    What's Changed

    Full Changelog: 2.3.3...2.4.0

    Open source →
    Release notes

    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

    Open source →
  2. 2.3.3 01 Feb 2026
    Release notes

    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 long error that occurred when highlighting large code blocks.

    Open source →
    Release notes

    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 long error that occurred when highlighting large code blocks.

    Open source →
  3. 2.3.2 21 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.3.1...2.3.2

    Open source →
    Release notes

    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

    Open source →
  4. 2.3.1 18 Feb 2025
    Release notes

    What's Changed

    • fix: restore blade grammar file by @heywhy in #31

    Full Changelog: 2.3.0...2.3.1

    Open source →
    Release notes

    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

    Open source →
  5. 2.3.0 10 Feb 2025
    Release notes

    What's Changed

    Full Changelog: 2.2.2...2.3.0

    Open source →
    Release notes

    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

    Open source →
  6. 2.2.2 06 Nov 2024
    Release notes

    What's Changed

    Full Changelog: 2.2.1...2.2.2

    Open source →
    Release notes

    What's Changed

    • fix: support string and object for token.htmlStyle by @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

    Open source →
  7. 2.2.1 05 Nov 2024
    Release notes

    What's Changed

    Full Changelog: 2.2.0...2.2.1

    Open source →
    Release notes

    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

    Open source →
  8. 2.2.0 05 Nov 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.1.0...2.2.0

    Open source →
    Release notes

    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

    Open source →
  9. 2.1.0 29 Sep 2024
    Release notes

    What's Changed

    • Allow running in vanilla PHP projects by @timacdonald in #25
    • Re-add getAvailableLanguages, getAvailableThemes, languageIsAvailable and themeIsAvailable by @s3ththompson in #23

    New Contributors

    Full Changelog: 2.0.0...2.1.0

    Open source →
    Release notes

    What's Changed

    • Allow running in vanilla PHP projects by @timacdonald in https://github.com/spatie/shiki-php/pull/25
    • Re-add getAvailableLanguages, getAvailableThemes, languageIsAvailable and themeIsAvailable by @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

    Open source →
  10. 2.0.0 19 Feb 2024
    Release notes

    Upgrading

    • The getAvailableLanguages, getAvailableThemes, languageIsAvailable and themeIsAvailable methods have been removed. These are no longer necessary as Shiki 1.0 lazy loads these when necessary.

    What's Changed

    New Contributors

    Full Changelog: 1.3.0...2.0.0

    Open source →
    Release notes

    Upgrading

    • The getAvailableLanguages, getAvailableThemes, languageIsAvailable and themeIsAvailable methods 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

    Open source →
  11. 1.3.0 01 Jun 2022
    Release notes

    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

    Open source →
  12. 1.2.0 24 Feb 2022

    Nothing published for this version

  13. 1.1.7 22 Jul 2021
    Release notes
    • fix Node path
    Open source →
  14. 1.1.6 22 Jul 2021
    Release notes
    • add common locations to look for node
    Open source →
  15. 1.1.5 12 Jul 2021
    Release notes
    • Update Antlers syntax highlighting
    Open source →
  16. 1.1.4 12 Jul 2021
    Release notes
    • Fix compatibility on lower versions of Node
    Open source →
  17. 1.1.3 11 Jul 2021
    Release notes
    • Fix an issue where embedded languages weren't being highlighted correctly
    Open source →
  18. 1.1.2 11 Jul 2021
    Release notes
    • Fix an issue where focus was applied to the Shiki div when not needed
    Open source →
  19. 1.1.1 10 Jul 2021
    Release notes
    • Fix an issue when passing lines to be highlighted
    Open source →
  20. 1.1.0 10 Jul 2021
    Release notes
    • You can now mark lines as highlighted, added, deleted or focus
    Open source →
  21. 1.0.2 09 Jul 2021
    Release notes
    • significantly improve speed
    Open source →
  22. 1.0.1 09 Jul 2021
    Release notes
    • use default executable name
    Open source →
  23. 1.0.0 09 Jul 2021
    Release notes
    • initial release
    Open source →
  24. 0.0.2 08 Jul 2021

    Nothing published for this version

  25. 0.0.1 28 Jun 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive