use this instead:
curl -sS https://getcomposer.org/installer | php – --install-dir=/usr/local/bin --filename=composer