how to write composer to Windows Path code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: run global packages macos composer
export PATH=~/.composer/vendor/bin:$PATH
php composer.phar self-update
export PATH=~/.composer/vendor/bin:$PATH