-
-
Save entrptaher/5cbb8cac9b0a6366eda5f1b3a1c2790e 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: bash <(curl -s https://gist.githubusercontent.com/agarzon/ecb0b92d4c8e1bbde126534c76721a58/raw/install-php-tools.sh) | |
# bash <(curl -s https://gist.githubusercontent.com/entrptaher/5cbb8cac9b0a6366eda5f1b3a1c2790e/raw/027c108dfb192303c8aabaaabd7a3ea55f4ba6aa/install-php-tools.sh) | |
BIN_PATH=/home/someone/lampstack-7.1.13-1/php/bin/ | |
#COMPOSER | |
curl -LsS https://getcomposer.org/composer.phar -o ${BIN_PATH}composer | |
chmod a+x ${BIN_PATH}composer | |
#CODECEPTION | |
curl -LsS http://codeception.com/codecept.phar -o ${BIN_PATH}codecept | |
chmod a+x ${BIN_PATH}codecept | |
#PHPMD | |
curl -LsS http://static.phpmd.org/php/latest/phpmd.phar -o ${BIN_PATH}phpmd | |
chmod a+x ${BIN_PATH}phpmd | |
#DEPLOYER | |
curl -LsS http://deployer.org/deployer.phar -o ${BIN_PATH}dep | |
chmod a+x ${BIN_PATH}dep | |
#ROBO | |
curl -LsS http://robo.li/robo.phar -o ${BIN_PATH}robo | |
chmod a+x ${BIN_PATH}robo | |
#PHPCPD | |
curl -LsS https://phar.phpunit.de/phpcpd.phar -o ${BIN_PATH}phpcpd | |
chmod a+x ${BIN_PATH}phpcpd | |
#PHPCS | |
curl -LsS https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o ${BIN_PATH}phpcs | |
chmod a+x ${BIN_PATH}phpcs | |
#PHPCBF | |
curl -LsS https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o ${BIN_PATH}phpcbf | |
chmod a+x ${BIN_PATH}phpcbf | |
#PHPUNIT | |
curl -LsS https://phar.phpunit.de/phpunit.phar -o ${BIN_PATH}phpunit | |
chmod a+x ${BIN_PATH}phpunit | |
#PSYSH | |
curl -LsS https://git.io/psysh -o ${BIN_PATH}psysh | |
chmod a+x ${BIN_PATH}psysh | |
#PHP-CS-FIXER | |
curl -LsS http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o ${BIN_PATH}php-cs-fixer | |
chmod a+x ${BIN_PATH}php-cs-fixer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment