How can I easily switch between PHP versions on Mac OSX?

https://stackoverflow.com/questions/34909101/how-can-i-easily-switch-between-php-versions-on-mac-osx

Using brew

Show current version

$ php -v

Change to different version

(eg. changing from 5.5.x to version 7.0.latest) :

$ brew unlink php55

$ brew install php70

你可能感兴趣的:(How can I easily switch between PHP versions on Mac OSX?)