composer require package code example
Example 1: update packages composer global
composer global update
Example 2: composer list packages
composer show -i //local packages
composer global show -i //global packages
Example 3: php composer update
php composer.phar update
Example 4: composer add package
composer require name-of-package
Example 5: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"