PHPUnit is the de-facto standard for unit testing in PHP projects. It provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system.
phploc is a tool for quickly measuring the size of a PHP project.
pdepend can generate a large set of software metrics from a given code base. These values can be used to measure the quality of a software project and they help to identify the parts of an application where a code refactoring should be applied.
phpmd scans PHP source code and looks for potential problems such as possible bugs, dead code, suboptimal code, and overcomplicated expressions
phpdcd is a Dead Code Detector (DCD) for PHP code. It scans a PHP project for code that is no longer used.
phpDox is the documentation generator for PHP projects. This includes, but is not limited to, API documentation.
Most of the tools that comprise the PHP Quality Assurance Toolchain can be installed system-wide using the PEAR Installer.
Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions.
sudo pear upgrade PEAR usually suffices to upgrade an existing PEAR installation. The PEAR Manual explains how to perform a fresh installation of PEAR.
The following two commands (which you may have to run as
root) are all that is required to install all the tools listed above that are marked with a * using the PEAR Installer:
pear config-set auto_discover 1 pear install pear.phpqatools.org/phpqatools