tempest/highlight
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.
composer require tempest/highlight
Highlight code like this:
$highlighter = new \Tempest\Highlight\Highlighter();
$code = $highlighter->parse($code, 'php');
Continue reading in the docs: https://tempestphp.com/main/packages/highlight.
How can I help you explore Laravel packages today?