phpmd/phpmd
PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5695
- days_rel: n/a
- days_push: 10
- n_releases_24m: 0
Adoption not part of the score
2446 stars · 357 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PHPMD is a static analysis tool for PHP source code, a PHP equivalent of the Java PMD tool built on top of PHP Depend's metrics. It scans codebases for potential bugs, suboptimal code, overcomplicated expressions, and unused code using configurable rulesets.
Use cases
- detect code smells in my php project
- find unused methods and parameters in php code
- enforce clean code rules in ci pipeline
- analyze php code complexity and cyclomatic complexity
- static analysis for php similar to pmd
- generate xml reports of php code violations
- find possible bugs in legacy php codebase
When to choose
- you maintain a PHP codebase and want automated detection of messy or buggy code
- you need configurable rulesets for code quality gates in CI
- you want a PMD-style mess detector for PHP
When to avoid
- you need full syntax/style linting rather than semantic mess detection (use PHP_CodeSniffer)
- your project is not written in PHP
- you need runtime error detection or dynamic analysis
Facets
cli-tool · maturity stable
linter developer-tools code-review developer-tools testing programming-languages cli php cross-platform mess-detector static-analyzer clean-code code-smells pmd php-depend quality-assurance command-line
4 sources
- readme: https://github.com/phpmd/phpmd · fetched 2026-08-28 · c25f87ac756e
- homepage: https://phpmd.org · fetched 2026-08-29 · dd6fd1238178
- site_page: https://phpmd.org/about.html · fetched 2026-08-29 · dd6fd1238178
- site_page: https://phpmd.org/documentation/index.html · fetched 2026-08-29 · 26504ff8a807
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phpmd/phpmd | main | 67 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem