php: command not found on MAC

On MAC if you are running the php command in the terminal and getting the php: command not found then you can try the following steps to solve that: zshrc Open the .zshrc file by running the following command: nano ~/.zshrc Do the following steps in that file: Paste the export PATH=”/opt/homebrew/opt/php@7.4/bin:$PATH” line in that end … Continue reading php: command not found on MACMore