composer require with 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 install without dependencies
composer install --ignore-platform-reqs
Example 3: composer update
php composer.phar update
Example 4: composer require specific version
composer require vendor/package:version