Really really quick how-to update from PHP7 from PHP5 using homebrew.
A little side note: homebrew is a package manager for MacOS. If you don’t have it, downloading it will be the best thing you ever do for your developer career: do it now.
brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/homebrew-php brew unlink php56 brew install php70
For Windows, try this:
So there’s been cases among the members of our group and for myself as well where we would update to PHP 7 and then for some reason every time we run terminal again, it would revert itself back to PHP 5. For this try:
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"