Document the installation steps and procedures for several tools in the PHP integration environment:
Installing Pear
wget http://pear.php.net/go-pear.phar$ PHP Go-pear.phar
Use: Pear Install < pear package to install >
Installing PHPUnit
Pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover Pear.symfony-project.comsudo Pear Install Phpunit/phpunit
Installing PHPMD
PHP mess detector:http://phpmd.org/, used as a tool for analyzing results based on Pdepend:
<span style= "FONT-SIZE:14PX;" >pear channel-discover pear.phpmd.orgpear channel-discover pear.pdepend.orgpear Install--alldeps PHPMD/PHP_PMD </span>
Installing PHPCPD
(PHP copy paste detector:https://github.com/sebastianbergmann/phpcpd), used to discover duplicate code tools in your project:
<span style= "FONT-SIZE:14PX;" >pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear Install Phpunit/phpcpd</span >
Installing PHPDCD
(PHP Dead Code detector:HTTPS://GITHUB.COM/SEBASTIANBERGMANN/PHPDCD), used to discover codes that are not referenced in the project:
Pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear Install Phpunit/phpdcd-beta
Use: PHPDCD--exclude/data/wwwroot/payapi/system/lib//data/wwwroot/payapi
PHP Continuous Integration Environment note