Composer Install on Mac

via Terminal (local)
curl -s http://getcomposer.org/installer | php
or
php -r "readfile('https://getcomposer.org/installer');" | php

via Terminal (global)

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

via Homebrew (global)
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install composer

run (local)
php composer.phar install

run (global)
composer install

Homebrew have 16 options

brew -h

  1. brew [info | home | options ] [FORMULA...]
  2. brew install FORMULA...
  3. brew uninstall FORMULA...
  4. brew search [foo]
  5. brew list [FORMULA...]
  6. brew update
  7. brew upgrade [FORMULA...]
  8. brew pin/unpin [FORMULA...]
    Troubleshooting:
  9. brew doctor
  10. brew install -vd FORMULA
  11. brew [--env | config]
    Brewing:
  12. brew create [URL [--no-fetch]]
  13. brew edit [FORMULA...]
  14. open https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
    Further help:
  15. man brew
  16. brew home