PHP Parser
A PHP parser written in PHP (by nikic)
PHP Mess Detector
PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. (by phpmd)
| PHP Parser | PHP Mess Detector | |
|---|---|---|
| 16 | 9 | |
| 17,393 | 2,406 | |
| 0.2% | 0.2% | |
| 7.9 | 2.4 | |
| 17 days ago | 16 days ago | |
| PHP | PHP | |
| BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" 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.
PHP Mess Detector
Posts with mentions or reviews of PHP Mess Detector. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-18.
- PHP libraries and tools
PHPMD - PHP Mess Detector: PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.
- Top 6 PHP code quality tools 2023
PHPMD Mess Detector: PHP Mess Detector PHP Mess Detector identifies potential problems and "code smells" in PHP code. It detects complex code, unused variables, duplicated code blocks, and other issues that may indicate poor code quality. It helps developers refactor and clean up their codebase. Documentation: To explore PHP Mess Detector and understand its usage, refer to the official repository: PHP Mess Detector Repository
- PHP in 2023 - stitcher.io
While you're at it, also include code-style checkers like phpcs, phpmd and/or php-cs-fixer
- Underestimated PHP
Mess detector
- Github Actions for Symfony 5 PHPUnit and more
- Twelve-factor app módszer a gyakorlatban / 1. rész
- PHP Static Analysis Tools Review
PHP Mess Detector is a multi-faceted static analysis PHP Tool based on PHP Depend. The kind of problems detected by PHPMD are divided into 5 main categories:
- Automating code quality check using GrumPHP in Magento 2
- A minimal Drupal 9 local development environment
PHPMD
What are some alternatives?
When comparing PHP Parser and PHP Mess Detector you can also consider the following projects:
PHP Analyser - Performs advanced static analysis on PHP code
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
PHP Semantic Versioning Checker - Compares two source sets and determines the appropriate semantic versioning to apply.
GrumPHP - A PHP code-quality tool
PHPCPD - Copy/Paste Detector (CPD) for PHP code.
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.