Posted at

Macにphpbrewを入れる

More than 1 year has passed since last update.

コマンドログ

$ curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew

$ chmod +x phpbrew
$ mv phpbrew /usr/local/bin/phpbrew

$ phpbrew init

$ brew link curl --force
$ brew link icu4c --force
$ brew link libxml2 --force
$ brew link openssl --force
$ brew install libiconv libzip
$ xcode-select --install

$ phpbrew install 7.1.0 +default +dba +fpm +openssl +intl +iconv +gettext -- --with-iconv=`brew --prefix libiconv` --with-zlib-dir=`brew --prefix libzip`
$ phpbrew use php-7.1.0