composer install dependencies globally code example
Example 1: update packages composer global
composer global update
Example 2: upgrading composer globally on windows
php composer.phar self-update
composer global update
php composer.phar self-update