Upgrade PHP Version on Mac OS X Sierra

Open Terminal and run…

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

or for 7.1

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1

after finished, run this command to update the path:

export PATH=/usr/local/php5/bin:$PATH

Advertisements