Skip to content

Instantly share code, notes, and snippets.

@johnpbloch
Last active December 21, 2015 06:28
Show Gist options
  • Select an option

  • Save johnpbloch/6264213 to your computer and use it in GitHub Desktop.

Select an option

Save johnpbloch/6264213 to your computer and use it in GitHub Desktop.
Install Boris, PHPUnit, and Mockery globally with Composer
#!/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