Skip to content

Instantly share code, notes, and snippets.

@ishtaka
Last active February 23, 2018 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishtaka/e83a195fffce7034c64d747a156c02d0 to your computer and use it in GitHub Desktop.
Save ishtaka/e83a195fffce7034c64d747a156c02d0 to your computer and use it in GitHub Desktop.
[PHP]PHPBrewで環境構築
# install phpbrew
brew tap homebrew/php
brew install phpbrew
# initialization
phpbrew init
echo "source $HOME/.phpbrew/bashrc" >> ~/.bash_profile
source ~/.bash_profile
# build and install php
phpbrew known
phpbrew install `version` +default
# use php version
phpbrew use php-`version`
# switch default php version
phpbrew switch php-`version`
# show list
phpbrew list
# edit php.ini
export EDITOR=vim
phpbrew config
# install composer
phpbrew app get composer
# install PHP_CodeSniffer
phpbrew app get phpcs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment