DEV Community

loading...

Discussion on: Switching between multiple PHP versions on macOS

Collapse
manuelojeda profile image
Manuel Ojeda

Have you tried using Laravel Valet?

After installing an specific PHP version you can sweet between using:
valet use <version>

Example:
valet use 7.2
valet use 7.4

Nice post 🤘

Collapse
markhesketh profile image
Mark Hesketh Author

Thanks Manuel!

Yeah I've used valet in the past but forgotten the use command swapped the CLI PHP version too. Thats really cool. I might have to reinstall it now.