Commit composer.lock and Use composer install for Deterministic PHP Builds
Lock the dependency resolution with composer.lock and install exactly those versions. Use composer install, not update, in CI and production for deterministic PHP builds.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Lock the dependency resolution with composer.lock and install exactly those versions. Use composer install, not update, in CI and production for deterministic PHP builds.
Goal Determine whether a committed composer.lock continues to govern composer install after constraints in composer.json are relaxed, and when Composer 2.x disregards the lock and performs fresh resolution instead. Constraints and uncertainty Composer installs exact locked versions and distribution hashes when the lock file is present and consistent with com