Last active
September 23, 2016 16:22
-
-
Save crzapata/6e2b05d1522dcae062ba6beb360bdf1f to your computer and use it in GitHub Desktop.
Install and manage multiple php versions and extensions with homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install php and all desired extensions for that php version | |
brew install php55 php55-intl php55-mcrypt php55-apcu php55-xdebug | |
brew unlink php55 | |
#repeat as needed | |
brew install php56 php56-intl php56-mcrypt php56-apcu php56-xdebug | |
brew unlink php55 | |
#install brew-php-switcher | |
brew install brew-php-switcher | |
#use brew-php-switcher to switch between versions | |
brew-php-switcher 55 -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment