PHP_CodeSniffer
5.6#31 in lintersFree planFree planSelf-hosted
Visit| Fact | PHP_CodeSniffer | PMD |
|---|---|---|
| Installation | The project documents installation through PHAR downloads, Composer, Phive, or a Git clone. | PMD requires Java 8 or above and is distributed as a ZIP archive containing PMD and CPD. |
| License | The repository identifies PHP_CodeSniffer as BSD-3-Clause licensed. | The project identifies its license as BSD-style. |
| Purpose | PHP_CodeSniffer tokenizes PHP files and detects violations of a defined coding standard. | PMD is an extensible cross-language static code analyzer that finds common programming flaws. |
| Support | The project directs users to its GitHub issue tracker for bug reports and feature requests and to its wiki for documentation. | The project directs users to Stack Overflow for questions, GitHub issues for suspected bugs or requests, and Gitter for quick questions. |
You want what its maker publishes above — check its page for the details.
PMD suits developers and teams who want static checks across supported languages, custom rules, and duplicate-code detection. It can fit command-line, build-tool, and CI workflows, provided the required Java version is available.