Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
- brew install composer
to test installation, runs:
$ composer -V
Composer version 1.1.2 2016-05-31 19:48:11
Why would anyone not want to install PHP 7 if they were installing it for the first time? The speed increase alone makes it preferable.