Skip to content

Instantly share code, notes, and snippets.

@crzapata
Last active September 23, 2016 16:22
Show Gist options
  • Save crzapata/6e2b05d1522dcae062ba6beb360bdf1f to your computer and use it in GitHub Desktop.
Save crzapata/6e2b05d1522dcae062ba6beb360bdf1f to your computer and use it in GitHub Desktop.
Install and manage multiple php versions and extensions with homebrew
#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