PHPackages                             krakjoe/phathom-ext - 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. krakjoe/phathom-ext

ActivePhp-ext[Parsing &amp; Serialization](/categories/parsing)

krakjoe/phathom-ext
===================

A multi-engine parser framework, for phathoming texty things.

00C

Since Jun 26Pushed yesterdayCompare

[ Source](https://github.com/krakjoe/phathom-ext)[ Packagist](https://packagist.org/packages/krakjoe/phathom-ext)[ RSS](/packages/krakjoe-phathom-ext/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

phathom/ext
===========

[](#phathomext)

This extension re-implements the internal API of `pharos\phathom\Earley`, mirroring the userland implementation but removing the cost of object allocation (in this namespace).

The following classes are implemented (only):

- `pharos\phathom\Earley\Chart`
- `pharos\phathom\Earley\Evaluator`
- `pharos\phathom\GLR\Chart`
- `pharos\phathom\GLR\Evaluator`

When the extension is loaded, they will usurp the function of the userland implementations transparently.

*This extension is intended to be a faithful mirror; A competent `PHP` programmer ought to be able to navigate this `C` code if they are familiar with the `PHP` implementation and they like to fix or add a thing.*

Install
-------

[](#install)

To configure the extension for normal installation

`./configure`

Run a normal build:

`make`

Install:

`make install`

Testing
-------

[](#testing)

To configure the extension with coverage:

`./configure --with-phathom-coverage`

Run a normal build:

`make`

To run coverage collection with lcov over phpunit tests:

`TEST_PHP_EXECUTABLE=/usr/bin/php make phathom-test-coverage-html`

Will generate a `coverage` directory with html and `coverage.info` with data.

*Note: the coverage recipe from Makefile.frag does not require installation of the extension*

### Notes

[](#notes)

It's important that the extension and PHP code are kept in sync; The extension treats the layout of PHP objects as stable ABI (ie, the properties must not change order).

*Note that, PHP objects do have a stable ABI with regard to the property layout, since [NG](https://wiki.php.net/phpng-int).*

**!WIP!**

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/2236138?v=4)[Joe Watkins](/maintainers/krakjoe)[@krakjoe](https://github.com/krakjoe)

---

Top Contributors

[![krakjoe](https://avatars.githubusercontent.com/u/2236138?v=4)](https://github.com/krakjoe "krakjoe (23 commits)")

### Embed Badge

![Health badge](/badges/krakjoe-phathom-ext/health.svg)

```
[![Health](https://phpackages.com/badges/krakjoe-phathom-ext/health.svg)](https://phpackages.com/packages/krakjoe-phathom-ext)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[karriere/json-decoder

JsonDecoder implementation that allows you to convert your JSON data into PHP class objects

140439.4k12](/packages/karriere-json-decoder)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[json-mapper/laravel-package

The JsonMapper package for Laravel

25188.9k3](/packages/json-mapper-laravel-package)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)

PHPackages © 2026

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