安装composer
# 由于应用的MAMP,指定php
export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH
mkdir /Applications/composer
cd /Applications/composer
curl -sS https://getcomposer.org/installer | php
mv composer{.phar,}
# PATH加路径
vi ~/.zshrc
# :/Applications/composer
. ~/.zshrc# 由于应用的MAMP,指定php
export PA