1#Install php version 7.3
2brew install php@7.3
3#Install the required PHP to your PATH
4echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.bash_profile
5echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.bash_profile
6source ~/.bash_profile
7#Check Version
8php --version
9#Show you where your ini file is loaded
10php --ini