Bash - Update OSX's PHP version with HomeBrew

$ xcode-select --install $ brew tap homebrew/dupes $ brew tap homebrew/versions $ brew tap homebrew/homebrew-php $ brew options php56 $ brew install php56 # Then config in your .bash_profile or .bashrc # Homebrew PHP CLI export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"

6 Responses

If ti will work with php 7?
I haven't tried but you could probably set 56 to 7.
Sure< I'll try on weekend, cuz I tired of MAMP
@Alexey Samara If you do WordPress development, I highly recommend Vagrant. I tend to use https://github.com/ideasonpurpose/basic-wordpress-vagrant and getting setup is pretty easy https://codepad.co/snippet/x9TwyHwH.
@Jesse Graupmann Nope, Symfony 3

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.