Last active
February 23, 2018 17:29
-
-
Save ishtaka/e83a195fffce7034c64d747a156c02d0 to your computer and use it in GitHub Desktop.
[PHP]PHPBrewで環境構築
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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