update to composer version 2 code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: php composer update
php composer.phar update
php composer.phar self-update
php composer.phar update