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.1.+
brew install php71 --with-postgresql
- Install
mcrypt
:brew install mcrypt php71-mcrypt
- Finally, install composer:
brew install composer