PHPackages                             setbased/antlr4-php-runtime - 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. setbased/antlr4-php-runtime

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

setbased/antlr4-php-runtime
===========================

PHP 7 &amp; 8 runtime for ANTLR 4

0.5.1(5y ago)119.0k↑300%1BSD-3-ClausePHPPHP &gt;=7.4

Since Sep 12Pushed 5y agoCompare

[ Source](https://github.com/SetBased/antlr-php-runtime)[ Packagist](https://packagist.org/packages/setbased/antlr4-php-runtime)[ RSS](/packages/setbased-antlr4-php-runtime/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

ANTLR4 Runtime for PHP
======================

[](#antlr4-runtime-for-php)

[![Travis CI](https://camo.githubusercontent.com/b5e3c0396344cea7f451cefecd2716f114dcaebd1854865ee8ab49b83273f4aa/68747470733a2f2f6170692e7472617669732d63692e6f72672f53657442617365642f616e746c722d7068702d72756e74696d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SetBased/antlr-php-runtime)[![Latest Stable Version](https://camo.githubusercontent.com/27ada5f30db861cad87921bc73b58649b14fd8edb541ade2bd55786483e65f4b/68747470733a2f2f706f7365722e707567782e6f72672f53657442617365642f616e746c72342d7068702d72756e74696d652f762f737461626c65)](https://packagist.org/packages/SetBased/antlr4-php-runtime)[![License](https://camo.githubusercontent.com/7af5c2161c3232de50361eea3b82960750db3b6543eff256a72bca9985c46133/68747470733a2f2f706f7365722e707567782e6f72672f53657442617365642f616e746c72342d7068702d72756e74696d652f6c6963656e7365)](https://packagist.org/packages/SetBased/antlr4-php-runtime)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a9044bf26acba5f7e83a2a78835ef3ca6d2eba5330a7c478ae99afb5ee1ccaa1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53657442617365642f616e746c722d7068702d72756e74696d652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SetBased/antlr-php-runtime/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/54447732b92c04b17306754e8346c498ca453290a9d1afa9feabcf3c6ddba27d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53657442617365642f616e746c722d7068702d72756e74696d652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SetBased/antlr-php-runtime/?branch=master)

This repository is a fork of [antlr-php-runtime](https://github.com/antlr/antlr-php-runtime). The (hopefully short-lived) mission of this repository is to release an ANTLR runtime library for PHP 8.x.

Install this package with [Composer](https://getcomposer.org):

```
composer require SetBased/antlr4-php-runtime

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Recently: every ~109 days

Total

6

Last Release

1975d ago

PHP version history (2 changes)0.1PHP ^7.2

0.5.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/67edc824131704a5270570c8bba7fc52986f3e70a0389aca6b13ea87ca4d9710?d=identicon)[Paul Water](/maintainers/Paul%20Water)

---

Top Contributors

[![prwater](https://avatars.githubusercontent.com/u/17372665?v=4)](https://github.com/prwater "prwater (9 commits)")[![marcospassos](https://avatars.githubusercontent.com/u/943036?v=4)](https://github.com/marcospassos "marcospassos (7 commits)")[![amorimjuliana](https://avatars.githubusercontent.com/u/11818859?v=4)](https://github.com/amorimjuliana "amorimjuliana (5 commits)")[![felixn](https://avatars.githubusercontent.com/u/221502?v=4)](https://github.com/felixn "felixn (1 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (1 commits)")[![parrt](https://avatars.githubusercontent.com/u/178777?v=4)](https://github.com/parrt "parrt (1 commits)")

---

Tags

phpruntimeantlr4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setbased-antlr4-php-runtime/health.svg)

```
[![Health](https://phpackages.com/badges/setbased-antlr4-php-runtime/health.svg)](https://phpackages.com/packages/setbased-antlr4-php-runtime)
```

###  Alternatives

[antlr/antlr4-php-runtime

PHP 8.0+ runtime for ANTLR 4

96636.7k13](/packages/antlr-antlr4-php-runtime)[nikic/phlexy

Lexing experiments in PHP

162570.9k13](/packages/nikic-phlexy)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

396.4k](/packages/blancks-fast-jsonpatch-php)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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