composer install 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 installed versions
composer show -i
Example 4: composer require with version
composer require vendor/package:version
composer require refinery29/test-util:0.10.2
Example 5: composer install without dependencies
composer install --ignore-platform-reqs
Example 6: composer mac
php composer-setup.php --install-dir=bin --filename=composer