How to update php 7 on OSX

Open your terminal and run following commands:

1) brew update 2) brew install homebrew/php/php70 3) sudo apachectl stop 4) sudo apachectl stop 5) export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH" 6) php -version


Share This: