一.安装brewphp
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
二.安装composergit
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer