This is a fairly big problem considering many PHP web developers need to analyze their program against a more recent edition of PHP than what the apple company provides. Luckily, they identified this was a problem, found a PHP development company that was enthusiastic about this problem space and came up with a general remedy to "how do we give specialized developers better control of Formulas in their field?"
The new Homebrew 0.9 adds a new command, brew tap that allows you to “tap” an alternative source of Homebrew formulas. (You can figure out if you have Homebrew 0.9 with brew -v. If you’re not up-to-date, simply brew up!)
And, (bonus!) there's already an official tap for PHP formulas. Setting up your homebrew install to use the new PHP tap is incredibly easy. Just: brew tap josegonzalez/php. And you’re good to go!
For more about this visit: PHP web development India