How to install a specific version of package using Composer?
composer require vendor/package:version
for example:
composer require refinery29/test-util:0.10.2
Add double quotes to use caret operator in version number.
composer require middlewares/whoops "^0.4"