Upgrade to PHP 7.4 with Homebrew on Mac

Brent has done a writeup on how to upgrade your Homebrew-installed PHP version to PHP 7.4. Since the php formula now contains that 7.4 version (instead of 7.3 before), all you need to do is make sure brew is up-to-date and then upgrade the php formula itself:

# make sure brew is up-to-date
brew update

# upgrade the php formula to its latest version
brew upgrade php

Upgrade to PHP 7.4 with Homebrew on Mac →

💁‍♂️ Don’t forget to upgrade Valet too, while you’re at it:

# stop current valet
valet stop

# update global packages
composer global update

# Make Valet do its housekeeping
valet install

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.