These are the best steps. I found them from this blog - https://gist.github.com/irazasyed/5987693
- Within the Terminal, run
vim ~/.bash_profile - Type
iand then paste the following at the top of the file:export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH - Hit
ESC, Type:wq, and hitEnter - In Terminal, run
source ~/.bash_profile - In Terminal, type in
which phpagain and look for the updated string. If everything was successful, It should output the new path to MAMP PHP install. - In case it doesn't output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes (Restart in short).
Then I can command 'composer install' successfully!
