know composer version code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: composer mac
php composer-setup.php --install-dir=bin --filename=composer
php composer.phar self-update
php composer-setup.php --install-dir=bin --filename=composer