Skip to content

Instantly share code, notes, and snippets.

@entrptaher
Forked from agarzon/install-php-tools.sh
Last active August 3, 2022 02:15
Show Gist options
  • Save entrptaher/5cbb8cac9b0a6366eda5f1b3a1c2790e to your computer and use it in GitHub Desktop.
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.
#!/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