2. install the composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
install the php 7
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2
https://php-osx.liip.ch/
using laravel
vim ~/.bash_profile
enter 'i' to insert
export PATH=/usr/local/php5/bin:$PATH
PATH="$PATH:$HOME/.composer/vendor/bin"
esc / enter
:wq /enter