You can clone with
HTTPS or Subversion.
curl -s http://getcomposer.org/installer | php -- --install-dir=bin
Use it: php bin/composer.phar
Use it: php composer.phar
One problem I see in even opening this can of worms is:
Use it: php /Users/whomever/projects/SweetProject/bin/composer.phar
The above could be fixed given we know it is a relative path; however, what about this:
curl -s http://getcomposer.org/installer | php -- --install-dir=/fully/qualified/path/to/bin
Use it: php /fully/qualified/path/to/bin/composer.phar
My proposal is to check for relative vs. qualified path and:
Why 3? I'd just say we output $installDir/composer.phar because that'll always work, if it looks ugly so it goes, don't pass it long absolute paths :)
Output proper path, support --install-dir<space>foo, fixes composer/c…
Tested...works as expected.