下記のURLを参考にしていたところ、下記エラーが発生しました。
OOO:aws-php-sample OOO$ curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
下記の使用しているphp.verが5.4なので、
php54-opensslをインストールして、改善できました。
sudo port install php54-openssl