PHPMD - PHP Mess Detector
This is the project site of PHPMD. It 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 and easy to configure frontend for the raw metrics measured by PHP Depend.
What PHPMD does is: It takes a given PHP source code base and look for several potential problems within that source. These problems can be things like:
Possible bugs
Suboptimal code
Overcomplicated expressions
Unused parameters, methods, properties
PHPMD is a young project and so it only provides a limited set of pre defined rules, compared with it's brother PMD, that detect code smells and possible errors within the analyzed source code. Checkout the rules section to learn more about all implemented rules.
Recent Releases
2012/02/04 - PHPMD 1.3.0: This release depends on the latest PHP_Depend version 1.0.0.
2012/01/27 - PHPMD 1.2.1: New bugfix release of PHPMD that fixes several minor issues in PHPMD. Additionally we have updated to a more recent PHP_Depend version.
2011/09/27 - PHPMD 1.2.0: New feature release of PHPMD that implements a new command line option for the strict mode.
2011/06/30 - PHPMD 1.1.1: New feature release of PHPMD that fixes an issue in PHP_PMD's package file.
2011/02/20 - PHPMD 1.1.0: New feature release of PHPMD that provides two new rules that will measure the quality of a project.