Skip to content

Instantly share code, notes, and snippets.

@gumeniukcom
Created May 28, 2017 11:07
Show Gist options
  • Save gumeniukcom/4e232970e8fc334f8285cb7c72bf5f6d to your computer and use it in GitHub Desktop.
Save gumeniukcom/4e232970e8fc334f8285cb7c72bf5f6d 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