composer package is requirements for install code example
Example 1: upgrade composer version
composer self-update
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"
composer self-update
composer require PACKAGE_NAME "PACKAGE_VERSION"