I want to do PHP works on My Mac book. However, after I installed Php storm, and tell the PHP Interpreter\'s location, it
To get the latest version (or whatever version you already have) on your MacBook, use:
brew install php --with-cgi --with-debug --with-libmysql
Note that Benjamin's answer is similar. However, it's not ideal to install v54 when I'm already on v717, so using just "php" without the version would get the latest one.