Skip to content

Instantly share code, notes, and snippets.

@QusaiFarraj
Last active November 10, 2019 21:38
Show Gist options
  • Save QusaiFarraj/618a2a1814a051f4dfc4194cb1d57996 to your computer and use it in GitHub Desktop.
Save QusaiFarraj/618a2a1814a051f4dfc4194cb1d57996 to your computer and use it in GitHub Desktop.
Run PHP71 and PHP72 on MacOS with Homebrew
When you transition from PHP71 to PHP72, you will need check that your projects ar compataible with PHP72.
In order to do so, you need to have both PHP71 nad PHP72 installed on your machine.
To do so:
1- install your default php version, if you have not already. For me it's `brew install php71`
2- install php72 `brew isntall php72`
3- symlink php72 `ln -s /usr/local/Cellar/php@7.2/7.2.24/bin/php /usr/local/bin/php72`
And that's it.
I hope this helps.
Feedback is always welcome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment