PHPackages                             tempest/highlight - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tempest/highlight

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tempest/highlight
=================

Fast, extensible, server-side code highlighting

2.17.2(2mo ago)689685.2k↑10.6%48[6 issues](https://github.com/tempestphp/highlight/issues)20MITPHPPHP ^8.4CI passing

Since Mar 28Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/tempestphp/highlight)[ Packagist](https://packagist.org/packages/tempest/highlight)[ GitHub Sponsors](https://github.com/brendt)[ RSS](/packages/tempest-highlight/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (66)Used By (20)

Fast, extensible, server-side code highlighting
===============================================

[](#fast-extensible-server-side-code-highlighting)

[![Coverage Status](https://camo.githubusercontent.com/3d5367665f930d194204d21e7b9daaf9b85c4615c8107d2f5d36c5ffe3aceba4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74656d706573747068702f686967686c696768742f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/tempestphp/highlight?branch=main)

Quickstart
----------

[](#quickstart)

```
composer require tempest/highlight
```

Highlight code like this:

```
$highlighter = new \Tempest\Highlight\Highlighter();

$code = $highlighter->parse($code, 'php');
```

Continue reading in the docs: .

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity61

Solid adoption and visibility

Community43

Growing community involvement

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

63

Last Release

70d ago

Major Versions

1.3.4 → v2.x-dev2024-04-15

PHP version history (2 changes)1.0PHP ^8.3

2.13.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cb3720658b52133e7200a378eae26508fb343534a3c115bd3ee74ea9d501ba2?d=identicon)[brendt](/maintainers/brendt)

![](https://www.gravatar.com/avatar/3dca3c3ac71024f7878526a0fe0a384fbf198ed711fe7e7bb34177a1dbc849f6?d=identicon)[golthem](/maintainers/golthem)

---

Top Contributors

[![brendt](https://avatars.githubusercontent.com/u/6905297?v=4)](https://github.com/brendt "brendt (361 commits)")[![xHeaven](https://avatars.githubusercontent.com/u/14284867?v=4)](https://github.com/xHeaven "xHeaven (40 commits)")[![DorZuberi](https://avatars.githubusercontent.com/u/3604454?v=4)](https://github.com/DorZuberi "DorZuberi (17 commits)")[![bogdancondorachi](https://avatars.githubusercontent.com/u/39380741?v=4)](https://github.com/bogdancondorachi "bogdancondorachi (16 commits)")[![afu-dev](https://avatars.githubusercontent.com/u/15209405?v=4)](https://github.com/afu-dev "afu-dev (13 commits)")[![tito10047](https://avatars.githubusercontent.com/u/11459248?v=4)](https://github.com/tito10047 "tito10047 (9 commits)")[![nimah79](https://avatars.githubusercontent.com/u/20343056?v=4)](https://github.com/nimah79 "nimah79 (8 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (6 commits)")[![kburton-dev](https://avatars.githubusercontent.com/u/10101978?v=4)](https://github.com/kburton-dev "kburton-dev (5 commits)")[![geisi](https://avatars.githubusercontent.com/u/10728579?v=4)](https://github.com/geisi "geisi (4 commits)")[![tonysm](https://avatars.githubusercontent.com/u/1178621?v=4)](https://github.com/tonysm "tonysm (3 commits)")[![ma4nn](https://avatars.githubusercontent.com/u/26252058?v=4)](https://github.com/ma4nn "ma4nn (3 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (3 commits)")[![innocenzi](https://avatars.githubusercontent.com/u/16060559?v=4)](https://github.com/innocenzi "innocenzi (2 commits)")[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (2 commits)")[![CharrafiMed](https://avatars.githubusercontent.com/u/130717329?v=4)](https://github.com/CharrafiMed "CharrafiMed (2 commits)")[![hopeseekr](https://avatars.githubusercontent.com/u/1125541?v=4)](https://github.com/hopeseekr "hopeseekr (2 commits)")[![osbre](https://avatars.githubusercontent.com/u/23292709?v=4)](https://github.com/osbre "osbre (2 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (1 commits)")[![lemmon](https://avatars.githubusercontent.com/u/251591?v=4)](https://github.com/lemmon "lemmon (1 commits)")

---

Tags

codehighlightphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tempest-highlight/health.svg)

```
[![Health](https://phpackages.com/badges/tempest-highlight/health.svg)](https://phpackages.com/packages/tempest-highlight)
```

###  Alternatives

[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)[inpsyde/disable-comments

Entirely ditches comments as a WordPress feature.

1720.7k1](/packages/inpsyde-disable-comments)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
