PHPackages                             ramsey/pygments - 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. ramsey/pygments

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

ramsey/pygments
===============

A PHP wrapper for Pygments, the Python syntax highlighter, forked from kzykhys/pygments.

3.0.0(1y ago)103.0k[1 PRs](https://github.com/ramsey/pygments/pulls)3MITPHP ^8.2

Since Dec 19Compare

[ Source](https://github.com/ramsey/pygments)[ Packagist](https://packagist.org/packages/ramsey/pygments)[ RSS](/packages/ramsey-pygments/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (17)Versions (9)Used By (3)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/ramsey/pygments).

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance44

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 71.7% 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 ~580 days

Recently: every ~725 days

Total

6

Last Release

437d ago

Major Versions

1.0.1 → 2.0.02021-03-07

2.0.2 → 3.0.02025-03-07

PHP version history (4 changes)1.0.0PHP ^5.6 || ^7.0

1.0.1PHP ^5.5 || ^7.0

2.0.0PHP ^7.3 || ^8.0

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f514481fa9cfdfd5dbcaccb3e5b480f18ea05ebf331cddf9b1c5a2a96a78fef5?d=identicon)[ramsey](/maintainers/ramsey)

---

Top Contributors

[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (86 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![kzykhys](https://avatars.githubusercontent.com/u/1751547?v=4)](https://github.com/kzykhys "kzykhys (9 commits)")[![nicwortel](https://avatars.githubusercontent.com/u/1055691?v=4)](https://github.com/nicwortel "nicwortel (6 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (2 commits)")[![DanielEScherzer](https://avatars.githubusercontent.com/u/179652704?v=4)](https://github.com/DanielEScherzer "DanielEScherzer (1 commits)")[![thomasrockhu](https://avatars.githubusercontent.com/u/4213028?v=4)](https://github.com/thomasrockhu "thomasrockhu (1 commits)")[![jayvdb](https://avatars.githubusercontent.com/u/15092?v=4)](https://github.com/jayvdb "jayvdb (1 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (1 commits)")[![MatmaRex](https://avatars.githubusercontent.com/u/160413?v=4)](https://github.com/MatmaRex "MatmaRex (1 commits)")[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (1 commits)")

---

Tags

highlightsyntaxpygments

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ramsey-pygments/health.svg)

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

###  Alternatives

[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71140.3M82](/packages/scrivo-highlightphp)[easybook/geshi

GeSHi - Generic Syntax Highlighter. This is an unmodified port of GeSHi project code found on SourceForge.

211.0M10](/packages/easybook-geshi)[nezhelskoy/yii2-highlight

Yii2 highlight.js extension

1531.3k](/packages/nezhelskoy-yii2-highlight)[luminous/luminous

A full featured syntax highlighting library.

521.7k2](/packages/luminous-luminous)

PHPackages © 2026

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