PHPGTK
Currently there appears to be no easy way to get PHPGTK working on an Os X box. The available installers and sources are mostly designed for Linux and Windows. If you are interested in using PHP to develop GUI applications its worth checking it out though.
Fig. 2 – Example PHPGTK application FileSync