spatie/shiki-php
Use Shiki syntax highlighting from PHP. Highlight code snippets with editor-quality themes and 100+ languages, plus Antlers and Blade. Works great with Laravel via spatie/laravel-markdown and CommonMark through a companion extension.
spatie/laravel-markdown with dynamic, themed highlights (e.g., GitHub-style dark/light themes).stdin since v2.3.3).For Executives: "This package lets us deliver VS Code-quality syntax highlighting in our developer tools—like GitHub’s dark/light themes—without building a custom solution. It’s a drop-in upgrade for our Laravel-based docs, support portals, or internal IDEs, reducing formatting time by 80% while improving readability. Since it’s MIT-licensed and maintained by Spatie (a trusted open-source vendor), it’s a low-risk way to enhance our DX. For example, we could auto-generate themed code snippets for our API docs or add visual diffs to PR reviews, making onboarding and collaboration faster."
For Engineers:
*"Spatie’s shiki-php wraps the same engine as VS Code’s syntax highlighter, giving us:
spatie/laravel-markdown or commonmark-shiki-highlighter.stdin (fixed in v2.3.3) and is ~10x faster than alternatives like Prism.js in PHP.Trade-offs:
Use Cases:
Alternatives:
Ask: Should we prioritize this for the next docs refresh or the support portal rewrite?"*
How can I help you explore Laravel packages today?