PHP Parser
A PHP parser written in PHP (by nikic)
Better Reflection
:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. (by Roave)
| PHP Parser | Better Reflection | |
|---|---|---|
| 16 | 1 | |
| 17,393 | 1,232 | |
| 0.2% | 0.4% | |
| 7.9 | 9.4 | |
| 17 days ago | 8 days ago | |
| PHP | PHP | |
| BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PHP Parser
Posts with mentions or reviews of PHP Parser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-21.
- PHP 8.4 Released
Once rector gets 8.4 rules out, this will be pretty awesome:
https://github.com/rectorphp/rector/issues/8701
https://github.com/nikic/PHP-Parser/commit/7b0384cdbe03431c4...
- Showcasing PHP-Parser: A Native PHP Parser Written in PHP
- PHP Is the Best Choice for Long‑Term Business
- PHP-Parser: A Native PHP Parser for Parsing and Analyzing PHP Code
heh, I'll be straight that 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)
- PHP-Parser: A PHP parser written in PHP
- Diff Speeding - Rector and sebastian/diff speed improvements through profiling
Interesting. One of the reasons I stopped considering Rector is because of how memory, CPU, and time intensive it is for a non-trivial project. Instead I've been using Nikita's PHP Parser directly and getting much better results even though it isn't multi-threaded out of the box.
- PHP Skeleton for Bison
nikic/PHP-Parser uses a Bison equivalent for PHP parsing. See the grammar file https://github.com/nikic/PHP-Parser/blob/4.x/grammar/php7.y.
- Alternative for nette/tokenizer?
Maybe nikic/PHP-Parser is an alternative. If you only need to tokenizer part, PHP has an extension too.
- How PHP engine builds AST
nikic/PHP-Parser
- Parsing with PHP, Bison and re2c
Code parsing. Many linters and code builders use php-parser. It uses YACC (analog Bison) to build AST.
Better Reflection
Posts with mentions or reviews of Better Reflection. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-21.
- I made a library that allows reflection on files through static analysis
If I get it correctly, it's same use case as for https://github.com/Roave/BetterReflection
What are some alternatives?
When comparing PHP Parser and Better Reflection you can also consider the following projects:
PHP Analyser - Performs advanced static analysis on PHP code
UBench - Micro PHP benchmark library
PHP Semantic Versioning Checker - Compares two source sets and determines the appropriate semantic versioning to apply.
PHP Refactoring Browser
PHPCPD - Copy/Paste Detector (CPD) for PHP code.