Downloads
PEAR Installer
The preferred way to install PHPMD should be the PEAR installer and PHPMD's PEAR channel, where you will always find the latest stable version. Because PHPMD heavily relies on metrics measured with PHP Depend you must also discover this project's PEAR Channel. Just enter:
mapi@arwen ~ $ pear channel-discover pear.phpmd.org
mapi@arwen ~ $ pear channel-discover pear.pdepend.org
mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alphaFrom the subversion repository
If you are curious about the latest PHPMD features, you can use a trunk checkout from the project's subversion repository. This checkout already contains all external dependencies. But keep in mind that this version may be broken from time to time.
mapi@arwen ~ $ svn co http://svn.phpmd.org/trunk phpmdOtherwise you can check out one of the tagged versions from the repository.
mapi@arwen ~ $ svn co http://svn.phpmd.org/tags/phpmd-0.2.6 phpmd-0.2From the github repository
If you like to participate on the social coding plattform GitHub, you can use PHPMD's mirror to fork and contribute to PHPMD.
mapi@arwen ~ $ git clone git://github.com/manuelpichler/phpmd.gitRequirements
PHPMD itself is considered as an early development version at its current state. It relies on the following software products: