php: command not found Command PhaseScriptExecution failed with a nonzero exit code
PHP Snippet 1:
xcode-select --install
PHP Snippet 2:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
PHP Snippet 3:
brew tap shivammathur/php
PHP Snippet 4:
brew install shivammathur/php/[email protected]
PHP Snippet 5:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
PHP Snippet 6:
php -v
PHP Snippet 7:
brew link --overwrite --force shivammathur/php/[email protected]