PHPUnit: Installation via Composer globally

// Composer installieren

sudo apt-get update && sudo apt-get install curl
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

// Eintrag in ~/.bashrc:

export PATH=~/.composer/vendor/bin:$PATH

// PHP Unit

composer global require "phpunit/phpunit=4.3.*"
composer global require "phpunit/dbunit=1.*"
composer global require "phpunit/phpunit-selenium=1.*"
composer global --dev require "phpunit/php-invoker=*"

// PHP_Depend

composer global –dev require "pdepend/pdepend=*"

// PHP Mess Detector

composer global require "phpmd/phpmd"

// PHP Codesniffer

composer global require “squizlabs/php_codesniffer=*”

// PHP Copy/Paste Detector

composer global require "sebastian/phpcpd=*"

// PHP LOC Lines of code

composer global require "phploc/phploc=*"

// PHP Documentor (Achtung: Tonnenweise Abhängigkeiten, kann Github-Login erfordern, wegen Download-Limit)

composer global require "phpdocumentor/phpdocumentor"

// PHP CodeBrowser

composer global require "mayflower/php-codebrowser=~1.1"

Schreibe einen Kommentar