Some settings on your machine may cause stability issues with Composer. If you encounter issues, try to change the following:
The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1. If possible you should upgrade OpenSSL to version 1.0.1 or above.
I see similar questions like this were asked before, but not about this issue from within MAMP. I get this after a fresh install of MAMP on OSX Yosemite 10.10.5
also, echo $PATH
chendeMacBook-Air:MAMP doudou$ echo $PATH /usr/local/bin:/Users/doudou/progs:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/DevDesktop/drush
Already put more than an hour on this. Any help appreciate, Thanks.
phpinfo() says OpenSSL version is 1.0.2j, not 0.9.8zc. Don't know where that warning is coming from. That comes up after installing composer in MAMP. I don't understand how it's looking up OpenSSL version installed on my machine. Anyway, I think it's good to leave this here to help out others that might face the same problem. The ton of other threads on upgrading OpenSSL in MAMP isn't relevant. At least I hope I'm right about this so I don't waste another 2 hours in the bushes.