How-to Easy Install Latest PHP on Mac OS X by HomeBrew

Getting-Started with PHP for Mac

The Linked Unix Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Latest PHP 5.x on Mac OS X 10.10+ BSD.

PHP (Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Mac OS X PHP Installation Guides - Featured

PHP 5 Installation Mac OS X

Installing Latest PHP 5.x for Mac OS X