Skip to content

Instantly share code, notes, and snippets.

@raymonsanches
Last active May 25, 2017 13:42
Show Gist options
  • Save raymonsanches/cd53bab574f650df174f1cc711b8041f to your computer and use it in GitHub Desktop.
Save raymonsanches/cd53bab574f650df174f1cc711b8041f to your computer and use it in GitHub Desktop.
Install phpbrew with Symfony 3 requirements on OS X
## Requirements for PHPbrew
xcode-select --install
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gmp libevent
brew link icu4c
brew link --force openssl
brew link --force libxml2
## Adittional requirement
brew install readline
## Install phpbrew
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew; chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
## Start environment (this is not local, it is a globally command *per user*)
phpbrew init
## PHP7 with symfony reqs
phpbrew install php-7.0.14 as php7 +default+mb+mysql+sqlite+pdo+fpm+json+iconv+mcrypt+intl+exif+gd+curl
## Switch php version
phpbrew switch php7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment