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
composer require vendor/package:version for example: composer require refinery29/test-util:0.10.2
If you update your libs, you want to commit the lockfile too. It basically states that your project is locked to those specific versions of the libs you are using. If you commit your changes, and someone pulls your code and updates the dependencies, the lockfile should be unmodified. If it is modified, it means … Read more
Composer 1.x and 2.x Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately. composer remove vendor/package Obviously you’ll need to remove references to that package within your app. I’m currently running the following version of Composer: Composer version 1.0-dev (7b13507dd4d3b93578af7d83fbf8be0ca686f4b5) 2014-12-11 21:52:29 Documentation … Read more