Skip to content

Instantly share code, notes, and snippets.

@devuri
Forked from vinaydotblog/composer-install.sh
Created April 27, 2018 22:20
Show Gist options
  • Save devuri/bc0d9c8149870aabc5fa06b2e25123b8 to your computer and use it in GitHub Desktop.
Save devuri/bc0d9c8149870aabc5fa06b2e25123b8 to your computer and use it in GitHub Desktop.
Installing composer using curl
# Goto a directory you can write to:
cd ~
#get composer:
curl -s https://getcomposer.org/installer | php
# move composer into a bin directory you control:
sudo mv composer.phar /usr/local/bin/composer
# double check composer works
composer about
# (optional) Update composer:
sudo composer self-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment