Install PHP
$ curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.3Add path to your bash profile to access it globally:
$ echo 'export PATH="/usr/local/php5/bin:$PATH"' >> ~/.bash_profileIf you are using Oh My Zsh:
$ echo 'export PATH="/usr/local/php5/bin:$PATH"' >> ~/.zshrcReopen your Terminal windows or
$ source ~/.bash_profile
$ source ~/.zshrcVerify installation
$ php -v
Excelent! This worked for me.