tempest/highlight
Fast, extensible server-side code highlighting for PHP and more. Tempest Highlight parses source code into highlighted output with a simple API: instantiate the Highlighter and call parse($code, 'php'). Ideal for docs, blogs, and code previews.
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?