spatie/commonmark-highlighter
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| carteni/highlight-bundle | 0.88 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 9 years ago | |
| graham-campbell/markdown | 0.87 | — | 1,344 | 1,362 | 138 | 138K | 0 | 33.6 | 31.0 | MIT | 4 months ago | |
| cdaguerre/markdown-bundle | 0.87 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| alten/syntax-highlight-bundle | 0.87 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| spatie/commonmark-shiki-highlighter | 0.87 | 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. | 93 | 92 | 15 | 212K | 0 | 12.6 | 49.5 | MIT | 7 months ago | |
| tempest/highlight | 0.87 | Fast, extensible server-side syntax highlighting for PHP. Tempest Highlight parses code with a simple Highlighter API and supports multiple languages for rendering highlighted output in apps, docs, and tooling—install via Composer and start highlighting in minutes. | 697 | 696 | 48 | 82K | 7 | 38.1 | 35.6 | MIT | 3 weeks ago | |
| core23/commonmark-formatter-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| league/commonmark | 0.86 | 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,968 | 3,010 | 214 | 11M | 20 | 57.6 | 70.1 | BSD-3-Clause | 1 week ago | |
| torchlight/torchlight-laravel | 0.86 | 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 | 23K | 18 | 28.6 | 41.6 | MIT | 4 months ago | |
| adiog/syntax-highlight-bundle | 0.86 | Symfony bundle that packages Alex Gorbatchev’s SyntaxHighlighter 3.0.83 for Composer-based apps. Install via composer, enable the bundle in AppKernel, then run assets:install to publish the JS/CSS for client-side code highlighting. | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| jakub-onderka/php-console-highlighter | 0.86 | Abandoned package for syntax-highlighting PHP code in the terminal using ANSI colors. Provides a Highlighter that outputs highlighted whole-file or snippet content for CLI display. Suggested alternative: php-parallel-lint/PHP-Console-Highlighter. | 6,165 | 5,952 | 17 | 275K | 0 | 27.3 | 22.9 | MIT | 7 years ago | |
| spatie/laravel-markdown | 0.85 | 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. | 413 | 411 | 31 | 219K | 0 | 24.1 | 41.7 | MIT | 4 months ago | |
| spatie/shiki-php | 0.85 | 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. | 311 | 312 | 32 | 2M | 0 | 25.7 | 60.9 | MIT | 2 months ago | |
| johnnyhuy/laravel-useful-commonmark-extension | 0.84 | — | 7 | 7 | 4 | 0 | 1 | 4.5 | — | MIT | 6 years ago | |
| scrivo/highlight.php | 0.84 | Server-side syntax highlighting for PHP using highlight.js grammars. Highlight code blocks in many languages, auto-detect when needed, and render HTML with themes—ideal for docs, blogs, and static site generation without requiring a browser. | 714 | 727 | 44 | 2M | 13 | 17.7 | 52.6 | BSD-3-Clause | 3 years ago | |
| spatie/commonmark-wire-navigate | 0.80 | CommonMark extension that adds a wire:navigate attribute to links rendered from Markdown, enabling Livewire SPA navigation. Install via Composer and register WireNavigateExtension in your CommonMark environment or spatie/laravel-markdown config. | 10 | 10 | 2 | 950 | 0 | 0.7 | 26.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?