Uninstall/ disable php 5.6.9 osx Yosemite
To switch versions:

brew unlink php56 &amp;&amp; brew link php53


There are complete instructions for managing and using a specific version of PHP at the Github repo for homebrew-php:

https://github.com/Homebrew/homebrew-php

Setup the homebrew/dupes tap which has dependencies we need:

$ brew tap homebrew/dupes


Setup the homebrew/versions tap which has dependencies we need:

$ brew tap homebrew/versions


Then, run the following in your command-line:

$ brew tap homebrew/homebrew-php


Usage

Note: For a list of available configuration options run:

$ brew options php53


Once the tap is installed, you can install php53, php54, php55, php56, or any formulae you might need via:

$ brew install php53


…