How did I fix the «Could not open input file» issue for Composer in Cygwin?

I have added to ~/.bash_profile:

alias composer='php C:\\tools\\composer\\composer'

stackoverflow.com/a/28526333