Skip to content

Instantly share code, notes, and snippets.

@takemitsu
Created April 16, 2015 04:40
Show Gist options
  • Save takemitsu/e23a2301fe8c6492d92d to your computer and use it in GitHub Desktop.
Save takemitsu/e23a2301fe8c6492d92d to your computer and use it in GitHub Desktop.
how to install phpbrew for laravel on mac

install phpbrew

Reference URL: http://phpbrew.github.io/phpbrew

install phpbrew

curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/bin/phpbrew

initialize phpbrew

phpbrew init

add .bashrc

source ~/.phpbrew/bashrc

looking up homebrew libraries

phpbrew lookup-prefix homebrew

List known PHP versions

phpbrew known

List php variants

phpbrew variants

install php-5.6.6

mysql already installed. donot use PostgreSQL

phpbrew install php-5.6.6 +dbs +mb +default +gd -pgsql

switch php-5.6.6

phpbrew switch php-5.6.6

List installed PHPs

phpbrew list

install composer

phpbrew install-composer

install phpunit

phpbrew install-phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment