install composer specific version code example
Example 1: composer require with version
composer require vendor/package:version
composer require refinery29/test-util:0.10.2
Example 2: composer require specific version
composer require vendor/package:version
Example 3: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"