Install PHP with Postgres support using HomeBrew

Most of the information is taken from this article:
http://justinhileman.info/article/reinstalling-php-on-mac-os-x/

1. Add the Formulas

[code]
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
[/code]

2. Install PHP with Postgres support

[code]
brew install php56 –without-mysql –without-apache –with-pgsql

[/code]

3. Make sure it uses the Right Path

[code]
export PATH="$(brew –prefix)/bin:$PATH"
[/code]