PHP on Mac with Homebrew: how to update php to the latest minor patch?

profile picture

PHP on Mac with Homebrew: how to update php to the latest minor patch?

With the latest release of Laravel 8 and laravel Nova 3.9, the minimum required PHP version is 7.4.9

On my mac I had php 7.4.7

To make this very small update, it's actually a bit more complicated that you might think.

With homebrew you want to execute these commands:

brew update

brew unlink [email protected]

brew install [email protected]

sudo rm -rf /usr/local/Cellar/php/7.4.*

And it should work if you run php -v

php
update
homebrew

about me

profile picture

I consider myself as an IT Business Artisan. Or Consultant CTO. I'm a self-taught Web Developper, coach and teacher. My main work is helping and guiding digital startups.

more about me

follow me

newsletter

A weekly email with the latests articles

support my work

Start trading on binance
  • BTC

    BTC

    18SY81ejLGFuJ9KMWQu5zPrDGuR5rDiauM

  • ETH

    ETH

    0x68e8c828b8ce670062a83199cd8f62667c792f23

  • Monero

    XMR

    895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU

2021 My Dynamic Production SPRL All rights Reserved.