The recommended way to install PHP on Mac is with the brew package manager

Follow the instructions to install brew

Then execute the following:

brew install php@7.4


Running on a Mac with an M1 chip may cause issues if you want to run all the PHP extensions as some may not be compatible. Docker is a solution here.

brew install --cask docker
Powered by ComboStrap