Skip to content

Instantly share code, notes, and snippets.

@rahulvramesh
Created October 11, 2017 02:51
Show Gist options
  • Save rahulvramesh/9167d3a24b60e8d1114ce65a94aed1b5 to your computer and use it in GitHub Desktop.
Save rahulvramesh/9167d3a24b60e8d1114ce65a94aed1b5 to your computer and use it in GitHub Desktop.
Install PHP7 on OS X El Capitan

Install PHP7 on OS X El Capitan

add the taps, unlink the old PHP if required and add php7

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew unlink php56
brew install php70
brew install php70-xdebug
brew install mcrypt php70-mcrypt

And the result?

$ php --version
PHP 7.0.0 (cli) (built: Dec  2 2015 13:05:57) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies

All ready to go!

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment