I'm not sure that this is a Path alias, but I'm not sure how to do this in Windows 7.
When I run PHP composer, it shows all composer options, as expected.
However if I try to run in like
C:\>php composer.phar composer global update squizlabs/php_codesniffer:2.9.1
it returns
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "composer" is not defined.
EDIT: I had to install this behind a proxy, and I couldn't use a installer.
How can I create a working alias for simply running
c:\somewhere\anywhere\ composer
instead of php composer.phar so that I can call composer from anywhere on the filesystem and not only inside the php directory?