Composer doesn\'t run correctly in Cygwin if you try to install it \"globally\".
Putting composer.phar into /usr/local/bin/composer, then trying to run it will result in
I fixed it by adding a /usr/local/bin/composer file:
/usr/local/bin/composer
nano /usr/local/bin/composer
with the following content:
#!/bin/bash /cygdrive/c/wamp/bin/php/php5.4.3/php "C:\wamp\bin\php\php5.4.3\composer"
Basically, you have to call PHP with a Windows style path, not a cygwin path.