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

    0x519e0eaa9bc83018bb306880548b79fc0794cd08

  • Monero

    XMR

    895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU

2024 © My Dynamic Production SRL All rights Reserved.