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 | 8 years ago | |
| graham-campbell/markdown | 0.87 | — | 1,344 | 1,365 | 138 | 125K | 0 | 35.7 | 31.1 | MIT | 2 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. | 91 | 90 | 15 | 195K | 0 | 14.3 | 49.8 | MIT | 6 months 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,954 | 2,986 | 209 | 10M | 22 | 54.0 | 66.7 | BSD-3-Clause | 2 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 | — | — | — | |
| tempest/highlight | 0.86 | Fast, extensible server-side syntax highlighting for PHP and other languages. Install via Composer and use the Highlighter to parse code into highlighted output for rendering in docs, blogs, or apps, with a focus on performance and customization. | 694 | 691 | 48 | 58K | 7 | 37.4 | 33.2 | MIT | 2 weeks ago | |
| 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,168 | 5,952 | 17 | 324K | 0 | 27.3 | 23.9 | MIT | 7 years ago | |
| spatie/laravel-markdown-response | 0.86 | Serve clean markdown versions of your Laravel HTML pages for AI agents and bots. Detects requests via Accept: text/markdown, known user agents, or .md URLs. Driver-based conversion (local PHP or Cloudflare Workers AI), caching, and HTML preprocessing included. | 72 | 70 | 7 | 11K | 0 | 22.1 | 35.0 | MIT | 3 weeks 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. | 0 | 411 | — | 195K | — | 26.6 | 41.4 | — | — | |
| 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. | 310 | 312 | 31 | 2M | 0 | 28.3 | 60.6 | MIT | 1 month 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 | |
| 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. | 713 | 725 | 44 | 2M | 13 | 17.7 | 51.1 | BSD-3-Clause | 3 years ago | |
| spatie/color | 0.80 | PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). | 0 | 384 | — | 748K | — | 24.9 | 51.0 | — | — | |
| 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 | 667 | 0 | 0.7 | 24.7 | MIT | 1 year ago |
How can I help you explore Laravel packages today?