coposer update on server code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: composer add package
composer require name-of-package
php composer.phar self-update
composer require name-of-package