tempest / highlight
Fast, extensible, server-side code highlighting
                                    Fund package maintenance!
                                                                            
                                                                                                                                        brendt
                                                                                    
                                                                
Installs: 482 986
Dependents: 21
Suggesters: 0
Security: 0
Stars: 674
Watchers: 6
Forks: 43
Open Issues: 7
pkg:composer/tempest/highlight
Requires
- php: ^8.4
 
Requires (Dev)
- assertchris/ellison: ^1.0.2
 - friendsofphp/php-cs-fixer: ^3.84
 - league/commonmark: ^2.4
 - phpstan/phpstan: ^1.12.0
 - phpunit/phpunit: ^10.0
 - symfony/var-dumper: ^6.4|^7.0
 
Suggests
- assertchris/ellison: Allows you to analyse sentence complexity
 - league/commonmark: Adds markdown support
 
- dev-main
 - v2.x-dev
 - 2.13.1
 - 2.13.0
 - 2.12.0
 - 2.11.4
 - 2.11.3
 - 2.11.2
 - 2.11.1
 - 2.11.0
 - 2.10.6
 - 2.10.5
 - 2.10.4
 - 2.10.3
 - 2.10.2
 - 2.10.1
 - 2.10.0
 - 2.9.0
 - 2.8.2
 - 2.8.1
 - 2.8.0
 - 2.7.0
 - 2.6.1
 - 2.6.0
 - 2.5.0
 - 2.4.5
 - 2.4.4
 - 2.4.3
 - 2.4.2
 - 2.4.1
 - 2.4.0
 - 2.3.5
 - 2.3.4
 - 2.3.3
 - 2.3.2
 - 2.3.1
 - 2.3.0
 - 2.2.0
 - 2.1.0
 - 2.0.4
 - 2.0.3
 - 2.0.2
 - 2.0.1
 - 2.0.0
 - 1.3.4
 - 1.3.3
 - 1.3.2
 - 1.3.1
 - 1.3.0
 - 1.2.1
 - 1.2.0
 - 1.1.0
 - 1.0.2
 - 1.0.1
 - 1.0
 - dev-blade-presentation
 - dev-pxp
 
This package is auto-updated.
Last update: 2025-10-31 12:10:37 UTC
README
Quickstart
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.