composer install package specific version code example
Example 1: install laravel specific version using composer
composer create-project --prefer-dist laravel/laravel blog "6.*"
Example 2: composer check package version
composer show package/name
Example 3: composer require specific version
composer require vendor/package:version
Example 4: composer install package with specific version
composer require PACKAGE_NAME "PACKAGE_VERSION"