Top 23 PHP Code Analysis Projects
A PHP parser written in PHPProject mention: Tree-sitter: an incremental parsing system for programming tools | news.ycombinator.com | 2021-02-22
I wish there was a more universal format for parsers, but I just don't think there enough people who know their stuff.
Take PHP, a language that a lot of people use: the tree-sitter-php extension doesn't support features added in 2019, let alone features added towards the end of 2020.
If you want an up-to-date PHP parser, there's really only one open-source parser that's accurate enough to be used on PHP codebases old and new, and it's written in PHP. Then if you want to parse in a robust fashion you have to adopt a number of hacks to get everything working.
I hadn't encountered LSIF before – can GitHub be configured to use those maps?
A tool to automatically fix PHP Coding Standards issues
PHPCS Fixer 2
Scout APM - Leading-edge performance monitoring starting at $39/month. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
PHP Static Analysis Tool - discover bugs in your code without running it!
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
suppose we miss a space at the end of the file, and phpcs fails while running the automated pipelines on pull request merge.
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.Project mention: What is a good tool to check codebase compatibility with PHP 8? | reddit.com/r/PHP | 2021-04-12
- Phan (https://github.com/phan/phan) seems that it can check for backward compatibility but I've yet to find a way to configure it for forward-compatibility
Instant Upgrades and Instant Refactoring of any PHP 5.3+ codeProject mention: Today marks the first time my product does not support PHP versions that reached EOL | reddit.com/r/PHP | 2021-04-12
7.3 to 7.2: https://github.com/rectorphp/rector/blob/main/config/set/downgrade-php73.php
A PHP code-quality tool
grumphp can be configured to listen to git commit commands and will not allow until all quality checks passed.
Beautiful and understandable static analysis tool for PHP
A tool for quickly measuring the size of a PHP project.
Copy/Paste Detector (CPD) for PHP code.
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.
PHP Implementation of the VS Code Language Server Protocol 🆚↔🖥Project mention: How to use (and contribute) to neovim's built-in language server client and nvim-lspconfig | reddit.com/r/neovim | 2021-01-07
but as many people working in a lot of things I have no time to try to configure https://github.com/felixfbecker/php-language-server with nvim-lsp
:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.
A PHP VM implementation in PHP
PHP completion, refactoring, introspection tool and language server.Project mention: Does anyone use vim to develop in PHP with Symfony? | reddit.com/r/vim | 2021-02-01
Im using this https://github.com/phpactor/phpactor with ncm2 with ale. Im quite happy with it.
Micro PHP benchmark library
Static code analysis to find violations in a dependency graph
Compares two source sets and determines the appropriate semantic versioning to apply.
A static php code analysis tool using the Graph Theory
The Exakat Engine : smart static analysis for PHP
PHP Benchmarking Framework
A set of tools for lexical and syntactical analysis written in pure PHP.
A static analyzer for PHP version migration
What are some of the best open-source Code Analysis projects in PHP? This list will help you:
|2||PHP CS Fixer||10,017|
|4||PHP Code Sniffer||8,502|
|11||PHP Mess Detector||1,886|
|18||PHP Semantic Versioning Checker||412|