composer install package version code example
Example 1: composer require with version
composer require vendor/package:version
composer require refinery29/test-util:0.10.2
Example 2: php composer update
php composer.phar update
Example 3: composer add package
composer require name-of-package
Example 4: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"