Skip to main content
Mac OSBrew

All About Switching PHP Versions on Mac

By December 22, 2021February 4th, 2022No Comments

How to switch off php 8.1 on mac installed through brew?

Sometimes it is necessary to manually turn off a PHP version. sphp alone does not do the job. Here’s how to do it.

1
brew unlink php@8.1

Switching the versions when we have a different homebrew PHP tap!

1
brew link --overwrite --force shivammathur/php/php@8.0
Close Menu