PHPackages                             combyna/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. combyna/php-peg

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

combyna/php-peg
===============

PEG parser-generator for PHP

2.0.2(7y ago)3805↑25%1MITPHPPHP &gt;=5.3.0

Since Oct 29Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (8)Used By (0)

PEG parser-generator for PHP
============================

[](#peg-parser-generator-for-php)

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

It contains the following fixes:

- Support for Composer autoloading (courtesy of [hnesk/php-peg](https://github.com/hnesk/php-peg)
- A fix for a segfault caused by catastrophic backtracking in a regex.

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~286 days

Recently: every ~358 days

Total

6

Last Release

2874d ago

Major Versions

1.0.2 → 2.0.02017-03-03

### Community

Maintainers

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

---

Top Contributors

[![hnesk](https://avatars.githubusercontent.com/u/186821?v=4)](https://github.com/hnesk "hnesk (7 commits)")[![asmblah](https://avatars.githubusercontent.com/u/1714005?v=4)](https://github.com/asmblah "asmblah (5 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

parser-generatorpegphpparserDSLcompilerpeg

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/combyna-php-peg/health.svg)](https://phpackages.com/packages/combyna-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.2k980.3M171](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

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

Gherkin DSL parser for PHP

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

An HTML5 parser and serializer.

1.8k280.1M360](/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.7M212](/packages/matomo-device-detector)

PHPackages © 2026

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