how to check what version of composer you have code example
Example 1: composer check package version
composer show package/name
Example 2: upgrading composer globally on windows
php composer.phar self-update
composer show package/name
php composer.phar self-update