This tutorial assumes you have Homebrew installed.
-
Install PHP 7.3 using brew
brew install php -
Using
brew info phpor after the installation you'll find the path to thephp.ini, add this to your path:sudo nano /etc/pathsand add the following line:/usr/local/etc/php/7.3/ -
Restart terminal