Last active
October 10, 2017 14:53
-
-
Save facundofarias/6e5c3a84e4bb00a609cd5d92d64a8b89 to your computer and use it in GitHub Desktop.
Update to PHP 7.0 on OSX with Homebrew
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
$ php -v | |
PHP 5.6.30 (cli) (built: Feb 7 2017 16:18:37) | |
Copyright (c) 1997-2016 The PHP Group | |
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies | |
$ brew update && brew upgrade | |
$ brew tap homebrew/dupes | |
$ brew tap homebrew/versions | |
$ brew tap homebrew/homebrew-php | |
# You might get an error if PHP 5.6 has not been installed by brew previously, but don't worry, you can simply continue | |
$ brew unlink php56 | |
$ brew install php70 | |
$ php -v | |
PHP 7.0.23 (cli) (built: Sep 25 2017 08:07:03) ( NTS ) | |
Copyright (c) 1997-2017 The PHP Group | |
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment