Skip to content

Instantly share code, notes, and snippets.

@FlorianWolters
Last active February 16, 2016 08:49
Show Gist options
  • Save FlorianWolters/8543541 to your computer and use it in GitHub Desktop.
Save FlorianWolters/8543541 to your computer and use it in GitHub Desktop.
Batch script to globally install PHP tools with the dependency manager Composer
@ECHO OFF
REM Update Composer
composer self-update
REM PHPUnit
CALL composer global require phpunit/phpunit
REM Mock Object library for PHPUnit
CALL composer global require phpunit/phpunit-mock-objects
REM Behat
CALL composer global require behat/behat
REM QA-Tools
CALL composer global require qa-tools/qa-tools
REM PhpMetrics
CALL composer global require halleck45/phpmetrics
REM PHP_CodeSniffer (phpcs)
CALL composer global require squizlabs/php_codesniffer
REM PHP Depend (pdepend)
CALL composer global require pdepend/pdepend
REM PHP Mess Detector (phpmd)
CALL composer global require phpmd/phpmd
REM PHP Lines of Code (phploc)
CALL composer global require phploc/phploc
REM PHP Copy/Paste Detector (phpcpd)
CALL composer global require sebastian/phpcpd
REM PHP Dead Code Detector (phpdcd) (the package is ABANDONED)
CALL composer global require sebastian/phpdcd
REM PHP Coding Standards Fixer (php-cs-fixer)
CALL composer global require fabpot/php-cs-fixer
REM PhpDox
CALL composer global require theseer/phpdox
REM ApiGen
CALL composer global require apigen/apigen
REM Phing
CALL composer global require phing/phing
REM Updates all global dependencies
CALL composer global update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment