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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/commonmark-shiki-highlighter | 0.84 | 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 | |
| spatie/sidecar-shiki | 0.83 | 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/laravel-markdown | 0.82 | 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 | — | — | |
| phiki/phiki | 0.82 | 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. | 367 | 366 | 16 | 248K | 5 | 29.2 | 46.3 | MIT | 2 months ago | |
| carteni/highlight-bundle | 0.82 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 8 years ago | |
| spatie/commonmark-highlighter | 0.81 | 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 | |
| adiog/syntax-highlight-bundle | 0.80 | 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 | — | — | — | |
| alten/syntax-highlight-bundle | 0.80 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| leafo/scssphp | 0.79 | leafo/scssphp is a PHP compiler for SCSS/Sass. Use it to compile .scss files to CSS in PHP apps, with support for variables, nesting, mixins, imports, and more. Handy for build pipelines, theming, or on-the-fly stylesheet generation. | 1,332 | 1,407 | 211 | 35K | 5 | 23.6 | 21.9 | MIT | 6 years ago | |
| scrivo/highlight.php | 0.79 | 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 | |
| scssphp/scssphp | 0.79 | SCSSPHP is a PHP-based SCSS compiler for compiling .scss to CSS in your apps and build pipelines. Includes PHPUnit test suite, PSR-12 coding standards, and PHPStan static analysis tooling for contributors. | 629 | 640 | 90 | 876K | 11 | 27.7 | 51.7 | MIT | 6 months ago | |
| codeat3/phpcs-styles | 0.79 | codeat3/phpcs-styles provides PHP_CodeSniffer rulesets and coding style configurations to standardize formatting and code quality across PHP projects, helping teams enforce consistent conventions in CI and local development. | 0 | 0 | 0 | 1K | 0 | 0.0 | 42.5 | — | — | |
| kzykhys/pygments | 0.79 | Thin PHP wrapper around the Python Pygments syntax highlighter. Highlight code to HTML/ANSI, generate CSS for styles (e.g., monokai), guess lexer by filename, and list available lexers/formatters/styles. Supports custom pygmentize path. | 10 | 11 | 14 | 246 | 4 | 2.1 | 20.6 | — | 12 years ago | |
| clue/framework-x | 0.78 | Framework X is a simple, fast micro framework for building reactive PHP web apps. Create routes, return PSR-7 responses, and run anywhere—behind a traditional web server or as a standalone server with ReactPHP under the hood. | 938 | 935 | 56 | 3K | 1 | 11.8 | 8.4 | MIT | 1 year ago |
How can I help you explore Laravel packages today?