Composer: the right way
summary
Composer claims over 2.1 billion package downloads and reaches stability at version 1.0 (now 1.1). Use composer require and composer remove to change deps; understand that composer install reads the lockfile while composer update refreshes it. Authors must tag releases, follow semantic versioning and prefer the caret operator for compatible upgrades. Deploy with prefer-dist --no-dev and optimize the autoloader. Use Satis or Toran for private repos and never use Composer to install JavaScript packages — it breaks ecosystems.
AI-written summary · about
chapters (11)
- 0:00Introduction to Composer
- 2:58Managing dependencies
- 7:01Composer for developers
- 10:56Best practices for publishing
- 16:01Semantic versioning
- 21:31Versioning operators
- 27:05Avoiding dependency conflicts
- 29:43Install vs. update
- 34:58Production workflows
- 40:29Advanced usage and debugging
- 48:07Ecosystem and future
