Skip to content

Instantly share code, notes, and snippets.

@hungtienvu
Forked from matthewpizza/install-composer.sh
Created March 28, 2014 04:59
Show Gist options
  • Select an option

  • Save hungtienvu/9825688 to your computer and use it in GitHub Desktop.

Select an option

Save hungtienvu/9825688 to your computer and use it in GitHub Desktop.

Revisions

  1. @matthewpizza matthewpizza created this gist Feb 13, 2014.
    6 changes: 6 additions & 0 deletions install-composer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    cd $HOME
    ln -s `which php54` ~/bin/php
    export PATH=$HOME/bin:$PATH
    curl -sS https://getcomposer.org/installer | php54
    echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile
    source $HOME/.bash_profile