DEV Community


Discussion on: Switching between multiple PHP versions on macOS

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>

valet use 7.2
valet use 7.4

Nice post 🤘

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.