First install Brew on your MAC
- Setup Brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
- Install PHP 7.0.+
brew install php70
- Install
mcrypt
:brew install mcrypt php70-mcrypt
- Finally, install composer:
brew install composer