update a composer package code example
Example 1: update packages composer global
composer global update
Example 2: update composer php version
php7.3 -f /usr/local/bin/composer update
Example 3: php composer update
php composer.phar update
Example 4: composer add package
composer require name-of-package