Installing PHP 7.2 on Mac using Homebrew

Installing PHP 7.2 on Mac using Homebrew

Check version
php -v

check brew is up to date:

brew update

brew upgrade

Unlink php version which is install in the system

brew unlink php71

Now final step to download

brew install php72

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

Leave a Comment