PHP-Parser: A Native PHP Parser for Parsing and Analyzing PHP Code(github.com)
github.com
PHP-Parser: A Native PHP Parser for Parsing and Analyzing PHP Code
https://github.com/nikic/PHP-Parser
5 comments
there was some commentary on the previous submission in 2012: https://news.ycombinator.com/item?id=3621035
12 years later, PHP-Parser is an important part of the PHP ecosystem, particularly in code analysis and refactoring tools.
https://packagist.org/packages/nikic/php-parser/dependents?o...
https://packagist.org/packages/nikic/php-parser/dependents?o...
heh, I'm sad it doesn't parse its own source in the tests ... or maybe it does <https://github.com/nikic/PHP-Parser/blob/v5.1.0/test/bootstr...>, who knows (joking but not joking)
It's certainly used on its own codebase indirectly, phpstan - the static analysis tool they use - uses PHP-Parser internally:
https://github.com/phpstan/phpstan-src/blob/4f7beffdf4c30c49...
[deleted]