If you need to switch your PHP version on MacOs here is how you can do it.
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 9 months ago
Be the first to leave a comment.
You must login to leave a comment