Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


HomeBrew is a package manage for OS X that helps you to easily install commonly used packages. HomeBrew can be used to install and upgrade your version of PHP, and can also be used to easily install Xdebug:

No Format
brew install homebrew/php/php<version number>-xdebug

Where <version number> is the version number (without the .) that you are using. For example, for PHP 5.6 use:

No Format
brew install homebrew/php/php56-xdebug

This will install and enable Xdebug in your php.ini file. You can check that Xdebug has been install by using the command