| What it is | PHP Mess Detector: finds bugs and code smells in PHP | PHP static analysis that finds bugs without running your code | PHP_CodeSniffer sniffs that check PHP code for cross-version compatibility | Detect and fix coding standard violations in PHP |
| Features | - rules for possible bugs, unused code and overcomplicated expressions
- configurable rule sets
- command line and CI use
- built on PHP Depend metrics
| - whole-codebase static analysis
- rule levels 0 to 10
- baseline for existing errors
- generics and array shapes in PHPDoc
- framework extensions for Symfony, Laravel and Doctrine
- result cache and parallel analysis
- PHPStan Pro web UI
| - sniffs that flag PHP features unavailable or changed in a chosen PHP version or range
- testVersion set per run or in a custom ruleset
- consistent results whichever PHP version runs PHP_CodeSniffer
- framework, CMS and polyfill specific rulesets that extend it
| - phpcs detects coding standard violations
- phpcbf fixes them automatically
- built-in standards and custom rulesets
- project configuration files
- signed PHAR downloads and Composer
|