Last active
December 21, 2015 06:28
-
-
Save johnpbloch/6264213 to your computer and use it in GitHub Desktop.
Install Boris, PHPUnit, and Mockery globally with Composer
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 | |
| # Install composer | |
| if [ -e /usr/local/bin/composer ]; then | |
| sudo composer self-update # gets you the 'global' command | |
| else | |
| curl -sS https://getcomposer.org/installer | php | |
| chmod +x composer.phar | |
| sudo mv composer.phar /usr/local/bin/composer | |
| fi | |
| sudo COMPOSER_HOME=/usr/local/src/composer composer global config bin-dir /usr/local/bin | |
| sudo COMPOSER_HOME=/usr/local/src/composer composer global require phpunit/phpunit:3.7.* | |
| sudo COMPOSER_HOME=/usr/local/src/composer composer global require mockery/mockery:0.8.* | |
| sudo COMPOSER_HOME=/usr/local/src/composer composer global require d11wtq/boris:v1.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment