composer require specific version package code example
Example 1: composer require specific version
composer require vendor/package:version
Example 2: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"