Composer - composer.lock

1 · Sachin Rai · Aug. 8, 2021, 6:50 a.m.
If you’re familiar with composer then, you will always find composer.lock in the root source of your project. This file contains the list of installed dependencies of your project. composer.lock ensures everyone working on your project is running with the same dependencies versions. Now, we get the idea of why commit the composer.lock file to git. It may confuse you that we are already using a specific version in composer.json. Yes, we do, but the dependencies also require other dependencies tha...