spatie/commonmark-shiki-highlighter
League/CommonMark code block renderer that highlights fenced code using Shiki PHP. Includes extra Antlers and Blade grammars in addition to Shiki’s 100+ languages. Ideal for Laravel setups (see spatie/laravel-markdown). Requires JS shiki v1.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/commonmark-highlighter | 0.89 | Server-side syntax highlighting for league/commonmark code blocks using scrivo/highlight.php. Generates HTML compatible with highlight.js themes, reducing JavaScript and avoiding flashes of unstyled code. Supports 185+ languages for fast, clean markdown rendering. | 139 | 139 | 10 | 12K | 0 | 2.0 | 18.7 | MIT | 4 years ago | |
| spatie/sidecar-shiki | 0.88 | Run Shiki syntax highlighting on AWS Lambda via Sidecar from your Laravel app—no Node.js or Shiki dependencies on your server. Install the package, configure Sidecar, register the HighlightFunction, and render highlighted code fast and consistently. | 37 | 36 | 1 | 3 | 0 | 2.3 | 0.5 | MIT | 1 year ago | |
| spatie/shiki-php | 0.87 | 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. | 310 | 312 | 31 | 2M | 0 | 28.3 | 60.6 | MIT | 1 month ago | |
| phiki/phiki | 0.86 | Phiki is a PHP syntax highlighter for the web. It uses TextMate grammars and VS Code themes to render highlighted code, with an API inspired by Shiki and an implementation influenced by vscode-textmate. | 366 | 366 | 16 | 248K | 5 | 29.2 | 46.3 | MIT | 2 months ago | |
| spatie/laravel-markdown | 0.86 | Render Markdown in Laravel with a Blade x-markdown component or a configurable MarkdownRenderer. Converts content to HTML with heading IDs, links, and syntax-highlighted code blocks, using options from your config and container resolution. | 0 | 411 | — | 195K | — | 26.6 | 41.4 | — | — | |
| core23/commonmark-formatter-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| alten/syntax-highlight-bundle | 0.86 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| graham-campbell/markdown | 0.86 | — | 1,344 | 1,365 | 138 | 125K | 0 | 35.7 | 31.1 | MIT | 2 months ago | |
| carteni/highlight-bundle | 0.86 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 8 years ago | |
| torchlight/torchlight-laravel | 0.85 | Torchlight syntax highlighting for Laravel. Highlight code blocks with VS Code-compatible themes and zero JavaScript. Includes caching, configurable themes and host, and Blade components/directives. Requires a Torchlight API token (free for personal/open source). | 120 | 120 | 17 | 13K | 18 | 31.4 | 38.7 | MIT | 2 months ago | |
| cdaguerre/markdown-bundle | 0.85 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| fluxbb/commonmark | 0.85 | Laravel-friendly CommonMark utilities from FluxBB: parse, render, and work with Markdown/CommonMark content in PHP with sensible defaults and integration patterns suited to Laravel apps. Lightweight package aimed at consistent, safe content rendering. | 15 | 15 | 1 | 26 | 5 | 1.4 | 6.9 | MIT | — | |
| knplabs/knp-markdown-bundle | 0.84 | — | 412 | 432 | 48 | 21K | 0 | 3.9 | 16.7 | MIT | 4 years ago | |
| league/commonmark | 0.81 | Extensible PHP Markdown parser supporting the full CommonMark spec and GitHub-Flavored Markdown. Works with PHP 7.4+ (mbstring) and provides simple converters to turn Markdown into HTML with configurable safety options. | 2,954 | 2,986 | 209 | 10M | 22 | 54.0 | 66.7 | BSD-3-Clause | 2 months ago |
How can I help you explore Laravel packages today?