Composer Best Practises
summary
Covers concrete Composer commands and workflows: use composer bump to update JSON constraints after updates, prefer minimal-changes and patch-only flags to limit scope, run composer audit and add rowa/security-advisories to block vulnerable versions, and host dependencies on a private repository (Private Packagess or Nexus/Artifactory) to pin zips and avoid deleted tags. Explains forking with repository + replace, monorepo path repositories, exact steps to resolve composer.lock merge conflicts, and CI deploys that run composer install, dump-autoload, and produce artifacts.
AI-written summary · about
chapters (10)
- 0:00Introduction to Composer
- 6:47Supply chain security
- 15:30Semantic versioning basics
- 20:01Forking dependencies
- 25:16Partial dependency updates
- 30:50Updating dependencies frequently
- 33:59Mono repos and path repositories
- 35:02Composer lock file importance
- 39:14Deployment best practices
- 41:00Caching strategies in CI
