spatie/shiki-php
Bring Shiki's beautiful syntax highlighting to PHP. A simple static call highlights code using the same language engine as popular code editors, with 100+ languages and themes plus bundled Antlers and Blade support.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/php-cloneable | 0.91 | Trait for PHP 8.1+ that makes objects with readonly properties cloneable. Safely “clone with changes” by copying an object while overriding readonly fields—handy until PHP gets native clone-with support. | 97 | 98 | 7 | 207K | 0 | 1.6 | 45.9 | MIT | 2 years ago | |
| spatie/php-structure-discoverer | 0.90 | Quickly discover classes, interfaces, enums, and traits in your PHP application that match conditions like implementing an interface, with extra metadata per structure and built-in caching to keep things fast in production. | 179 | 180 | 18 | 5M | 1 | 22.0 | 61.1 | MIT | 4 months ago | |
| spatie/php-type-graph | 0.90 | Build a graph of all PHP types in your project. Analyze classes, interfaces, enums, and their relationships to understand your codebase structure, dependencies, and type usage. Useful for architecture insights, tooling, and visualization (WIP). | 10 | 10 | 4 | 0 | 0 | 0.7 | — | MIT | 2 years ago | |
| spatie/url | 0.89 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 738 | 751 | 59 | 679K | 0 | 12.4 | 40.9 | MIT | 2 years ago | |
| torchlight/laravel | 0.88 | torchlight/laravel integrates Torchlight syntax highlighting with Laravel, adding a Blade component and CommonMark extension so you can render beautiful, cached code blocks in views and Markdown content with minimal setup. | 120 | 120 | 17 | 0 | 18 | 13.9 | 6.8 | MIT | 7 months ago | |
| spatie/commonmark-shiki-highlighter | 0.88 | 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. | 92 | 92 | 15 | 372K | 0 | 5.8 | 50.2 | MIT | 11 months ago | |
| nicodmf/highlight-bundle | 0.87 | Symfony bundle that integrates highlight.php to add syntax highlighting for code snippets. It provides Twig helpers and configurable themes, making it easy to render readable, colorized source code in templates with minimal setup. | 21 | 22 | 5 | 0 | 3 | 1.0 | 0.4 | — | — | |
| hydephp/torchlight-commonmark | 0.87 | Adds Torchlight syntax highlighting to the CommonMark PHP parser. It swaps the default code block renderer so fenced code blocks are sent to Torchlight's API and rendered with highlighting, line numbers, diffs, and other features. | 0 | 0 | 0 | 802 | 0 | 0.0 | 40.1 | MIT | 1 year ago | |
| spatie/laravel-blade-comments | 0.86 | Spatie's Laravel Blade Comments package wraps each rendered Blade view and component in HTML comments, so browser dev tools immediately reveal which view produced which markup, plus extra request info at the top of the document. | 180 | 180 | 13 | 4K | 0 | 15.6 | 20.5 | MIT | 6 months ago | |
| phiki/phiki | 0.86 | Phiki is a syntax highlighter written in PHP that uses TextMate grammar files and VS Code themes to generate syntax-highlighted code for the web. Inspired by Shiki and vscode-textmate, it supports a wide range of languages and themes and installs easily via Composer for Laravel and PHP projects. | 378 | 379 | 19 | 451K | 3 | 27.0 | 49.0 | MIT | 3 months ago | |
| carteni/highlight-bundle | 0.86 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 9 years ago | |
| njpanderson/braid | 0.86 | Braid is a Laravel package for building flexible, reusable navigation structures with a simple API. It helps you define items, manage active states, and render clean Blade markup, keeping menus and site navigation consistent and easy to maintain. | 1 | — | 0 | — | 0 | 0.3 | — | GPL-3.0 | 1 year ago | |
| spatie/commonmark-highlighter | 0.86 | 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 | 17K | 0 | 2.0 | 20.5 | MIT | 5 years ago | |
| spatie/laravel-markdown-blade-component | 0.86 | Spatie's Laravel Markdown Blade Component lets you render Markdown directly in Blade views using a simple component. Built on CommonMark, it supports GitHub-flavored Markdown, caching, and safe HTML output, making it ideal for blogs, docs, and user-generated content. | 415 | — | 31 | — | 0 | 9.6 | — | MIT | 8 months ago | |
| easybook/geshi | 0.86 | GeSHi is a PHP syntax highlighter that converts source code into HTML with language-aware formatting. This EasyBook-maintained fork supports numerous languages and is useful for rendering code in documentation, blogs, and PHP applications. | 22 | 26 | 12 | 8K | 0 | 0.5 | 35.4 | — | 8 years ago | |
| scrivo/highlight.php | 0.85 | 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. | 712 | 727 | 43 | 2M | 13 | 17.7 | 52.7 | BSD-3-Clause | 3 years ago | |
| spatie/sidecar-shiki | 0.85 | 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 | 37 | 1 | 2 | 0 | 2.3 | 0.3 | MIT | 2 years ago | |
| spatie/craft-ray | 0.85 | Send debug output from Craft CMS to Ray, Spatie’s desktop debugging app. Inspect arrays, HTML, queries, and more with a consistent API, measure performance, and pause execution. Great for fast feedback across PHP and other languages. | 16 | 16 | 1 | 347 | 0 | 9.4 | 19.3 | MIT | 8 months ago | |
| spatie/boost-spatie-guidelines | 0.85 | AI-optimized Spatie coding guidelines for Laravel Boost. Installs battle-tested Laravel & PHP standards into your .ai/guidelines folder so AI assistants generate PSR-compliant, convention-driven code (types, naming, control flow, testing) automatically. | 109 | 109 | 3 | 96K | 0 | 8.1 | 43.0 | MIT | 8 months ago | |
| spatie/code-outliner | 0.85 | CLI tool to visualize your code structure by generating outline images of files or directories. Overlay multiple files to spot dense or repetitive areas and improve readability. Requires Puppeteer via spatie/browsershot; install globally via Composer. | 84 | 85 | 3 | 0 | 0 | 1.7 | — | MIT | 8 years ago |
How can I help you explore Laravel packages today?