Interactive command line on a Mac. So far this helped out

brew tap josegonzalez/php
brew install phpsh

and finally add this to the ~/.bash_profile

export PYTHONPATH=/usr/local/lib/python2.7/site-packages 

and then re source your .bash_profile

souce ~/.bash_profile

now phpsh at the command line will give you an interactive shell