I'm on a Mac using macOS Monterey.
I'm trying to install and use Composer so that I can use it in MAMP.
I've followed a few tutorials to do this, but I am still unable to get terminal to recognize the command 'composer'.
It fails with the error:
env: php: No such file or directory
The composer executable is available here:
/Applications/Mamp/bin/composer
My .zshrc has the following alias:
alias phpmamp='/Applications/MAMP/bin/php/php7.4.12/bin/php'
How can I make Composer available for my PHP projects?