Updating PHP to 7.2 on OSX using Homebrew

Written by

in

PHP 7.2 provides several critical security updates and it’s important for any PHP developer to make sure that they leave the 5.x branch and jump on the 7.x branch as soon as possible.

Updating to PHP 7.2 is a breeze If you’re on OSX and using Homebrew.

Start by making sure that brew is up to date:

brew update && brew upgrade

Unlink any previous PHP installation (this may vary, so you might need to replace the php71 accordingly):

brew unlink php71

Install PHP 7.2:

brew install php72

Once done, you can verify that PHP 7.2 was installed by using php -v

Happy coding!

Tommie Podzemski

Building software for close to 30 years. Chief Product Officer at Yalta, and through my own company TomPod AB I build and run a portfolio of smaller products. I write here about development, product and running things.

About · Bluesky · X · GitHub

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *