Installing PHP for macOS

1. Open a new Terminal window

2. Enter the following command into the Terminal window and hit return.

brew install php

3. Close the Terminal window.