PHP: Static analisys tools
PHP Parallel Lint
"This application checks the syntax of PHP files in parallel."
clear && ddev composer check:lint
Phan
"Phan is a static analyzer for PHP that prefers to minimize false-positives. Phan attempts to prove incorrectness rather than correctness."
clear && ddev composer check:phan
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. "
Standards used:
clear && ddev composer check:phpcs
PHPMD
"PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD."
clear && ddev composer check:phpmd
PHPStan - PHP Static Analysis Tool
"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. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line."
clear && ddev composer check:phpstan
Psalm
"Psalm is a static analysis tool for finding errors in PHP applications."
clear && ddev composer check:psalm