composer require package specific version code example
Example 1: composer check package version
composer show package/name
Example 2: composer update
php composer.phar update
Example 3: composer require with version
composer require vendor/package:version
composer require refinery29/test-util:0.10.2