PHPMD
6.1#18 in lintersFree planFree planLinuxmacOSSelf-hostedWindows
Visit| Fact | PHPMD | PMD |
|---|---|---|
| Installation | The site documents installation as a Phar, through PHIVE, or via Composer. | PMD requires Java 8 or above and is distributed as a ZIP archive containing PMD and CPD. |
| License | The project site identifies PHPMD as licensed under the BSD 3-Clause license. | The project identifies its license as BSD-style. |
| Purpose | PHPMD analyzes PHP source code for possible bugs, suboptimal code, overcomplicated expressions, and unused parameters, methods, or properties. | PMD is an extensible cross-language static code analyzer that finds common programming flaws. |
| Support | The support page directs users to the Gitter channel for help and the issue tracker for bugs or feature requests. | The project directs users to Stack Overflow for questions, GitHub issues for suspected bugs or requests, and Gitter for quick questions. |
PHPMD suits PHP developers who want rule-based source analysis in a CI or self-hosted workflow. It is also relevant to teams that need custom rules or reports for GitLab and other listed formats.
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.