torchlight/torchlight-laravel
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).
Adopt if:
Look elsewhere if:
For Executives: "Torchlight for Laravel lets us deliver faster, more reliable code examples in our docs/API portal without bloating the frontend. By offloading syntax highlighting to a server-side API, we cut JavaScript dependencies, improve SEO, and future-proof our platform for high-traffic growth. The MIT license and free tier make it a low-risk, high-reward addition—ideal for differentiating our developer tools from competitors like Postman or Swagger."
For Engineers: *"This package replaces Prism.js/Highlight.js with a Laravel-native, Blade-friendly solution. Key benefits:
@torchlight directives or components like native Blade syntax.Migration Path:
torchlight/torchlight-laravel).php artisan torchlight:install) and set your API token.<pre><code> blocks with @torchlight directives or <x-torchlight> components.Risk Mitigation:
ROI:
How can I help you explore Laravel packages today?