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 issuesProject mention: Let's say you get an old, PHP5, mysql_*, horrible codebase, riddled with security issues and no composer. Your task is to make it work on PHP7+. | reddit.com/r/PHP | 2021-08-29
once these are done, composer require php codestyle fixer.
Scout APM: A developer's best friend. Try free for 14-days. 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!Project mention: PHP libraries and tools | dev.to | 2021-09-22
PHPStan: PHP Static Analysis Tool - discover bugs in your code without running it!. Plugins: ergebnis/phpstan-rules: Provides additional rules for phpstan/phpstan. spaze/phpstan-disallowed-calls: PHPStan rules to detect disallowed calls and constant & namespace usages roave/no-floaters: static analysis rules to prevent IEEE-754 floating point errors. More extensions
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.Project mention: PHP-backend Roadmap | dev.to | 2021-09-11
But the quality of the code and its style may seem subjective things, but teamwork requires it really often. In the PSR-12 standard, you can find the list of recommendations on how to style it. That standard isn't the only existing one, but it's definitely the most common. To simplify following it you can use CodeSniffer. And in order to develop the habit of writing clean code, you can use Psalm, Phan, or PHPStan linters. There's no need to learn each – better to choose the one you like most. In my case it's Psalm.
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.Project mention: Emotional Rage: any static-typed PHP compilers? | reddit.com/r/PHPhelp | 2021-07-15
You can use a static analyzer like Phan to lint the project.
Instant Upgrades and Automated Refactoring of any PHP 5.3+ codeProject mention: Is PHP outdated? | reddit.com/r/webdev | 2021-09-01
Something else mentioned in that episode that your teacher might find interesting is a recent tool called rector that's more or less babel for PHP, letting you use newer versions of PHP to code but still support older versions in production.
A PHP code-quality toolProject mention: PHP libraries and tools | dev.to | 2021-09-22
GrumPHP: A PHP code-quality tool.
Run Linux Software Faster and Safer than Linux with Unikernels.
Beautiful and understandable static analysis tool for PHP
A tool for quickly measuring the size of a PHP project.Project mention: PHP Static Analysis Tools Review | dev.to | 2021-04-28
PHPLOC also shows interesting statistics about your project. It is not as powerful as PHPDepend, but you can also get an interesting overview of your code size, complexity, number of classes, etc.
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 graphProject mention: Tool for analysis dependency inside your project | reddit.com/r/PHP | 2021-08-11
And maybe, to a lesser extent, to: - https://github.com/mihaeu/dephpend - https://github.com/mamuz/PhpDependencyAnalysis
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,480|
|4||PHP Code Sniffer||8,819|
|11||PHP Mess Detector||1,949|
|18||PHP Semantic Versioning Checker||415|
Are you hiring? Post a new remote job listing for free.