-
-
Save Filipe07/7a0c254e99c7f140594ead689fab30cd to your computer and use it in GitHub Desktop.
Install globally popular PHP dev tools like composer, phpunit, phpcs, phpmd, phpcpd, deployer, robo, codeception, etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #To execute it directly: sudo bash <(curl -s https://gist.github.com/Filipe07/7a0c254e99c7f140594ead689fab30cd/raw/install-php-tools.sh) | |
| BIN_PATH=/usr/local/bin/ | |
| #COMPOSER | |
| sudo curl -LsS https://getcomposer.org/composer.phar -o ${BIN_PATH}composer | |
| sudo chmod a+x ${BIN_PATH}composer | |
| #PHPUNIT | |
| sudo curl -LsS https://phar.phpunit.de/phpunit.phar -o ${BIN_PATH}phpunit | |
| sudo chmod a+x ${BIN_PATH}phpunit | |
| #CODECEPTION | |
| sudo curl -LsS http://codeception.com/codecept.phar -o ${BIN_PATH}codecept | |
| sudo chmod a+x ${BIN_PATH}codecept | |
| #PHPMD | |
| sudo curl -LsS http://static.phpmd.org/php/latest/phpmd.phar -o ${BIN_PATH}phpmd | |
| sudo chmod a+x ${BIN_PATH}phpmd | |
| #PHPCPD | |
| sudo curl -LsS https://phar.phpunit.de/phpcpd.phar -o ${BIN_PATH}phpcpd | |
| sudo chmod a+x ${BIN_PATH}phpcpd | |
| #PHPCS | |
| sudo curl -LsS https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o ${BIN_PATH}phpcs | |
| sudo chmod a+x ${BIN_PATH}phpcs | |
| #PHPCBF | |
| sudo curl -LsS https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o ${BIN_PATH}phpcbf | |
| sudo chmod a+x ${BIN_PATH}phpcbf | |
| #PHP-CS-FIXER | |
| sudo curl -LsS http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o ${BIN_PATH}php-cs-fixer | |
| sudo chmod a+x ${BIN_PATH}php-cs-fixer | |
| #DEPLOYER | |
| sudo curl -LsS http://deployer.org/deployer.phar -o ${BIN_PATH}dep | |
| sudo chmod a+x ${BIN_PATH}dep | |
| #PEAR | |
| sudo curl -LsS https://github.com/pear/pearweb_phars/blob/master/go-pear.phar -o ${BIN_PATH}pear | |
| sudo php -d detect_unicode=0 go-pear.phar | |
| #XDEBUG | |
| sudo pecl install xdebug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment