Install PHP, MySQL, PostgreSQL, Apache and xDebug on a Mac
You should have some tools installed like Homebrew, a text editor such as Sublime Text and it's subl command line app inside a bin
folder and some basic terminal knowledge.
This gist is a more detailed version of niepi's gist with things that worked for me. It may help someone :)
Install PHP
$ brew install php --with-apache --with-mysql --with-pgsql --with-intl