phpmd
« Back to VersTracker
Description:
PHP Mess Detector
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: php static-analysis code-quality linter developer-tools
Install: brew install phpmd
About:
PHPMD is a static analysis tool that scans PHP source code to detect potential bugs, suboptimal code, and overly complex expressions. It helps developers maintain clean, sustainable codebases by identifying common pitfalls before they become problems. The tool is highly configurable and integrates easily into CI/CD pipelines.
Key Features:
  • Detects common bugs and suboptimal code patterns
  • Measures cyclomatic complexity and code size
  • Highly configurable with custom rule sets
  • Outputs in multiple formats (XML, JSON, HTML)
Use Cases:
  • Enforcing coding standards in team projects
  • Refactoring legacy PHP applications
  • Automated code quality checks in CI/CD
Alternatives:
  • PHPStan – Focuses on type-checking and static analysis, while PHPMD focuses on code smells and complexity.
  • Psalm – Another type-checker, similar to PHPStan, whereas PHPMD is more about code style and maintainability.
Version History
Detected Version Rev Change Commit
Sep 13, 2025 11:14am 0 VERSION_BUMP 8cac2876
Nov 9, 2024 7:05pm 0 VERSION_BUMP 6b247c18