PHPackages                             mindplay/petitparserphp - 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. mindplay/petitparserphp

ActiveLibrary

mindplay/petitparserphp
=======================

Lukas Renggli's PetitParser ported to PHP

59[9 issues](https://github.com/mindplay-dk/petitparserphp/issues)PHP

Since Feb 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mindplay-dk/petitparserphp)[ Packagist](https://packagist.org/packages/mindplay/petitparserphp)[ RSS](/packages/mindplay-petitparserphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PetitParserPHP
==============

[](#petitparserphp)

Lukas Renggli's PetitParser ported to PHP by Rasmus Schultz.

[![Build Status](https://camo.githubusercontent.com/adc08455514c4f7010e4a0e7355506067447162fdef1eeb32f4cc4374466e0a4/68747470733a2f2f7472617669732d63692e6f72672f6d696e64706c61792d646b2f70657469747061727365727068702e706e67)](https://travis-ci.org/mindplay-dk/petitparserphp)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cfcc73419f905eb8e0024bfce10492836f91ff45849954e92bf3eea29cb7a06c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696e64706c61792d646b2f70657469747061727365727068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mindplay-dk/petitparserphp/?branch=master)

[![Code Coverage](https://camo.githubusercontent.com/8fc768836d13bc18baaa7886286eb2b4bf688ca7542c42b92eaf3f20f84e9d4f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696e64706c61792d646b2f70657469747061727365727068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mindplay-dk/petitparserphp/?branch=master)

Status of this port
-------------------

[](#status-of-this-port)

- The port is up-to-date with release 1.3.4 of dart-petitparser.
- The core has been ported, and all core unit tests have been ported and are passing.
- The previous version of the JSON parser has been ported along with the tests. (newer version is based on GrammarParser which has not been ported, because it uses language mechanics that aren't applicable to PHP.)
- **API (method-names, etc.) are still subject to change** pending the first tagged release.

Scope of this port
------------------

[](#scope-of-this-port)

- Other grammars and parsers (XML, Dart, Lisp, etc.) have not been ported, and isn't planned.
- "definition.dart" cannot be directly ported due to different language mechanics.

Contributions
-------------

[](#contributions)

Code adheres to PSR-1, PSR-2 and PSR-4.

Grammars and parsers belong in separate projects/packages, not in this one.

Source code is fully type-hinted with php-doc, passing all inspections in Php Storm.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9445f567f43ee7a963270651e40e533634586f959e4df3d5398d001b1cb49be8?d=identicon)[mindplay.dk](/maintainers/mindplay.dk)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (31 commits)")

### Embed Badge

![Health badge](/badges/mindplay-petitparserphp/health.svg)

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

PHPackages © 2026

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