1. curl -sS https://getcomposer.org/installer | php
  2.  
  3. detect_unicode = Off
  4.  
  5. $ curl ... | /Applications/MAMP/bin/php/php<your-version-here>/bin/php