install composer global cli code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: where do you install composer
// Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar