PHP PEG.js Plugin

JSON →
library 1.0.0-beta7 ·javascript
verified May 27, 2026

`phpegjs` is a plugin for the PEG.js parser generator that enables the generation of parsers in PHP. Currently in beta version 1.0.0-beta7, it extends PEG.js to output PHP source code based on a given grammar, allowing developers to define complex parsing logic using PEG.js's syntax and then deploy the resulting parser in a PHP environment. This library acts as a crucial bridge for projects requiring robust parsing capabilities in PHP without manually writing lexical analyzers and parsers. It maintains compatibility with various PHP versions, offering options for namespace management and `mbstring` extension usage. The project is a fork of `php-pegjs` and focuses on providing a stable PHP target for PEG.js grammars, making it a key tool for language processing, DSL implementation, or complex data format parsing within PHP applications. Its release cadence is tied to its beta status, with updates reflecting progress towards a stable 1.0 release.

total hits 14
actors 7 distinct systems
last hit 8d ago Script
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇳🇴 Norway · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France