Skip to content

Instantly share code, notes, and snippets.

@gboddin
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gboddin/841766a7693457754620 to your computer and use it in GitHub Desktop.
Save gboddin/841766a7693457754620 to your computer and use it in GitHub Desktop.
Install composer & co globally
mkdir ~/.composer/vendor/bin -p
wget https://getcomposer.org/composer.phar -O ~/.composer/vendor/bin/composer
chmod +x ~/.composer/vendor/bin/composer
echo "export PATH=\${PATH}:~/.composer/vendor/bin" >> ~/.bashrc
. ~/.bashrc
## example :
# composer global require "phing/phing"
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$ composer global require "phing/phing"
# Changed current directory to /home/boddigr/.composer
# Using version ~2.10 for phing/phing
# ./composer.json has been updated
# Loading composer repositories with package information
# Updating dependencies (including require-dev)
# - Installing phing/phing (2.10.1)
# Loading from cache
#
# Generating autoload files
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$ phing -version
# Phing 2.10.1
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$ composer global require "behat/behat"
# Changed current directory to /home/boddigr/.composer
# Using version ~3.0 for behat/behat
# ./composer.json has been updated
# Loading composer repositories with package information
# Updating dependencies (including require-dev)
# - Installing symfony/class-loader (v2.6.6)
# Downloading: 100%
# Downloading: 100%
#
# - Installing symfony/yaml (v2.6.6)
# Downloading: 100%
#
# - Installing symfony/translation (v2.6.6)
# Downloading: 100%
#
# - Installing symfony/event-dispatcher (v2.6.6)
# Downloading: 100%
#
# - Installing symfony/dependency-injection (v2.6.6)
# Downloading: 100%
#
# - Installing symfony/filesystem (v2.6.6)
# Downloading: 100%
#
# - Installing symfony/config (v2.6.6)
# Downloading: 100%
#
# - Installing behat/transliterator (v1.0.1)
# Downloading: 100%
#
# - Installing behat/gherkin (v4.3.0)
# Downloading: 100%
#
# - Installing behat/behat (v3.0.15)
# Downloading: 100%
#
# symfony/event-dispatcher suggests installing symfony/http-kernel ()
# symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
# behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
# behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
# behat/behat suggests installing behat/mink-extension (for integration with Mink testing framework)
# Writing lock file
# Generating autoload files
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$ behat --version
# behat version 3.0.15
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment