Install Brew to view tutorials: Mac OS X 10.9.1 install homebrew package management tools and brew installation maven3.1.1
First update the next Brew Software Library
Brew updatebrew Tap Josegonzalez/homebrew-php
Brew Installation php5.5
sudo Install --with---with---with---with-homebrew---with-imap--with-- -with---without---without---without---without-pear
More installation options can be viewed through the brew options Php55″.
Tip: –with-cgi cannot be installed with –WITH-FPM and conflict with each other
After the instructions are executed, PHP and PHP-FPM are installed.
Because it is a reload of PHP, before the system pre-installed PHP has not been uninstalled, so when the terminal calls PHP, or in the previous version of the PHP system to parse, so here need to modify path, specify the parsing path of PHP. At ~/.BASHRC (not created), add a line last:
Export path="$ (Brew--prefix php55)/bin: $PATH"
Add and then execute the source to make it effective
source. BASHRC
View PHP Version
havenshendemacbook-air:~ haven$ php-5.5. - - the £ º 1997-The PHP groupzend Engine v2. 5.0 1998- Zend Technologies
Complete
Brew Installation composer
Install Josegonzalez/php/composer
Input in Shell
Composer
This meeting appears composer installation complete