Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Last active November 19, 2018 13:55
Show Gist options
  • Save hidakatsuya/d69c0f23c1e941b5cfe2 to your computer and use it in GitHub Desktop.
Save hidakatsuya/d69c0f23c1e941b5cfe2 to your computer and use it in GitHub Desktop.
Installing PHP with phpenv on Mac
$ brew install libmcrypt
$ brew install php56
$ brew tap josegonzalez/homebrew-php
$ brew install phpenv
$ git://github.com/CHH/php-build.git ~/.phpenv/plugins/php-build
$ vi ~/.bash_profile
# phpenv
export PATH=$HOME/.phpenv/bin:$PATH

# rbenv
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
eval "$(phpenv init -)"
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar ~/.phpenv/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment