Sometimes you have to work with some legacy project without docker. And if you encounter problem with switching version of PHP on Mac OS terminal, there is small beautiful console application to deal with it.
Sometimes you have to work with some legacy project without docker.
And if you encounter problem with switching version of PHP on Mac OS terminal, there is small beautiful console application to deal with it.
First install brew, I bet you already have one if you are developer. If not, go to https://brew.sh/
After you had all set. Install Brew PHP Switcher
https://github.com/philcook/brew-php-switcher
To do that, just run in terminal:
brew install brew-php-switcher
To swtich php version now you can do something like that:
brew-php-switcher 7.4