PHPackages                             hnesk/php-peg - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. hnesk/php-peg

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

hnesk/php-peg
=============

Minimally invasive fork of hafriedlander/php-peg with support for composer autoloading

1.0.1(11y ago)24.5k11MITPHPPHP &gt;=5.3.0

Since Oct 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hnesk/php-peg)[ Packagist](https://packagist.org/packages/hnesk/php-peg)[ Docs](https://github.com/hnesk/php-peg)[ RSS](/packages/hnesk-php-peg/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (1)

Fork of PHP PEG with composer autoloading
=========================================

[](#fork-of-php-peg-with-composer-autoloading)

This is a minimally invasive fork of [hafriedlander/php-peg](https://github.com/hafriedlander/php-peg) with support for composer autoloading.

[Documentation of the original](https://github.com/hafriedlander/php-peg)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~0 days

Total

2

Last Release

4297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d0d0855186216bf09d14f950de078217113198311a9685c2601667088ca39db?d=identicon)[hnesk](/maintainers/hnesk)

---

Top Contributors

[![hnesk](https://avatars.githubusercontent.com/u/186821?v=4)](https://github.com/hnesk "hnesk (7 commits)")[![peter-kolenic](https://avatars.githubusercontent.com/u/3885371?v=4)](https://github.com/peter-kolenic "peter-kolenic (3 commits)")[![cognifloyd](https://avatars.githubusercontent.com/u/1558590?v=4)](https://github.com/cognifloyd "cognifloyd (1 commits)")[![simonwelsh](https://avatars.githubusercontent.com/u/125915?v=4)](https://github.com/simonwelsh "simonwelsh (1 commits)")[![uwetews](https://avatars.githubusercontent.com/u/1246127?v=4)](https://github.com/uwetews "uwetews (1 commits)")

---

Tags

parserDSLcompilerpeg

### Embed Badge

![Health badge](/badges/hnesk-php-peg/health.svg)

```
[![Health](https://phpackages.com/badges/hnesk-php-peg/health.svg)](https://phpackages.com/packages/hnesk-php-peg)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k972.9M2.7k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.1k963.0M170](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.1k158.5M911](/packages/erusev-parsedown)[behat/gherkin

Gherkin DSL parser for PHP

1.1k187.8M152](/packages/behat-gherkin)[masterminds/html5

An HTML5 parser and serializer.

1.8k280.1M354](/packages/masterminds-html5)[matomo/device-detector

The Universal Device Detection library, that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, media players, mobile apps, feed readers, libraries, etc), operating systems, devices, brands and models.

3.5k27.7M206](/packages/matomo-device-detector)

PHPackages © 2026

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