User Tools

Site Tools


sphp

This is an old revision of the document!


Switch between PHP versions in Mac with Homebrew & sphp

Many times I found me in the scenario where I need to use different versions for PHP at the same time for different projects. So here is a tiny guide of how to do this in the easy way.

First install different versions for php using Homebrew (If you haven’t installed Homebrew, just follow the at https://brew.sh/), to install this use:

brew install php@7.1
brew install php@7.2
brew install php@7.3
brew install php@7.4
sphp.1614288074.txt.gz · Last modified: 2023/09/14 06:06 (external edit)