note: PHP 程式碼分析工具

2018012410:57
static analysis tool for PHP


Code Sniffer
https://github.com/squizlabs/PHP_CodeSniffer

PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.


PHP Parser
https://github.com/nikic/PHP-Parser

This is a PHP 5.2 to PHP 7.2 parser written in PHP. Its purpose is to simplify static code analysis and manipulation.





PHPStan - PHP Static Analysis Tool
https://github.com/phpstan/phpstan

PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code.



Phan
https://github.com/phan/phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.



Psalm
https://github.com/vimeo/psalm

Psalm is a static analysis tool for finding errors in PHP applications.



其它

openfoundry 程式碼稽核

https://github.com/exakat/php-static-analysis-tools