{"library":"phpegjs","type":"library","category":null,"description":"`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.","language":"javascript","status":"active","version":"1.0.0-beta7","tags":["javascript","pegjs","plugin","php","parser","generator"],"install":[{"cmd":"npm install phpegjs","imports":["const pegjs = require('pegjs');","const phpegjs = require('phpegjs');","pegjs.buildParser(grammar, { plugins: [phpegjs], phpegjs: { /* plugin options */ } });"]},{"cmd":"yarn add phpegjs","imports":[]},{"cmd":"pnpm add phpegjs","imports":[]}],"homepage":null,"github":"https://github.com/nylen/phpegjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/phpegjs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/phpegjs/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}