brew-php-switcher by running following command:
brew install brew-php-switcher
Next you can check your installed php versions by running this command:
brew search php
If you need to install other versions of php you can read my other article Installing PHP on your Mac.
Finally you can switch your php version by running this command:
Remember 8.1 is version of php that you want to switch to. change it based on your needs.
- Last updated 1 month ago