Installing Specific Composer Package Versions
When utilizing Composer for dependency management, you may encounter situations where you require a specific version of a package. By default, Composer tends to install the most recent version of a package unless explicitly specified.
To install a specific package version, employ the following syntax:
composer require vendor/package:version
For instance, to install version 0.10.2 of the 'refinery29/test-util' package:
composer require refinery29/test-util:0.10.2
This command will install the specified version of the package, ensuring that your project utilizes the desired functionality and compatibility level.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3