Stop installing the entire development stack on your local machine. This project will allow you to quickly start working with php. To install, you need to install docker locally.
Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.