A little tip on getting PHP 5.4 installed on the latest OSX.
OSX ML ships with PHP 5.3 installed but the latest version is now on 5.4.
I’m a big fan of Homebrew and its pretty much the first thing I install on any new Mac.
First off add the following taps to your Homebrew
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
Then install PHP
brew install php54
Just ensure you have your $PATH set up correctly in your .bash_profile
or .zshrc
so that the Homebrew binaries are used instead of the system ones.