NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #610 most downloaded on Packagist
dependency injection container with automatic constructor dependency resolution
Latest stable
0.2.2
Last release 13 days ago
09 Nov 2026
Release timing varies
gaps range from 1 weeks to 5 months
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
27 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
fix: do not replace new default values with autowired services by @sanmai in https://github.com/sanmai/di-container/pull/107
Full Changelog: https://github.com/sanmai/di-container/compare/0.2.1...0.2.2
feat: Let PHP fill in default values using named arguments by @sanmai in https://github.com/sanmai/di-container/pull/106
AGENTS.md to .gitattributes by @kubawerlos in https://github.com/sanmai/di-container/pull/105Full Changelog: https://github.com/sanmai/di-container/compare/0.2...0.2.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add remove() and enable container introspection by @sanmai in https://github.com/sanmai/di-container/pull/88
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.22...0.1.23
Require sanmai/pipeline ^7.10, drop 6.x by @sanmai in https://github.com/sanmai/di-container/pull/86
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.21...0.1.22
Allow set()/bind() to accept a plain implementation class name by @sanmai in https://github.com/sanmai/di-container/pull/79
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.20...0.1.21
Fix has() for injected instances by @sanmai in https://github.com/sanmai/di-container/pull/84
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.19...0.1.20
Clear prebuilt instances when bind() overrides a service by @sanmai in https://github.com/sanmai/di-container/pull/83
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.18...0.1.19
Re-binding overrides factories and builders by @sanmai in https://github.com/sanmai/di-container/pull/80
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.17...0.1.18
More robust constructor parameter resolution by @sanmai in https://github.com/sanmai/di-container/pull/70
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.16...0.1.17
Skip optional dependencies for missing types by @sanmai in https://github.com/sanmai/di-container/pull/69
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.15...0.1.16
Resolve default values for scalars when autowiring by @sanmai in https://github.com/sanmai/di-container/pull/67
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.14...0.1.15
Injected instances must be discoverable when autowiring by @sanmai in https://github.com/sanmai/di-container/pull/68
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.13...0.1.14
Fix auto-wiring for optional dependencies by @sanmai in https://github.com/sanmai/di-container/pull/66
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.12...0.1.13
Add inject() method for pre-built objects by @sanmai in https://github.com/sanmai/di-container/pull/47
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.11...0.1.12
Add phpbench benchmark suite by @sanmai in https://github.com/sanmai/di-container/pull/40
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.10...0.1.11
Add bind() method for non-class service IDs by @sanmai in https://github.com/sanmai/di-container/pull/36
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.9...0.1.10
Relax type annotations to allow non-class service IDs by @sanmai in https://github.com/sanmai/di-container/pull/35
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.8...0.1.9
Allow container to inject itself as a dependency by @sanmai in https://github.com/sanmai/di-container/pull/32
ContainerInterface in constructor to avoid BC breaks by @sanmai in https://github.com/sanmai/di-container/pull/33Full Changelog: https://github.com/sanmai/di-container/compare/0.1.7...0.1.8
Make Builder template covariant for static analysis compatibility by @sanmai in https://github.com/sanmai/di-container/pull/31
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.6...0.1.7
Allow non-class service IDs to bypass type validation by @sanmai in https://github.com/sanmai/di-container/pull/30
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.5...0.1.6
Widen psr/container requirement to include v1 by @Slamdunk in https://github.com/sanmai/di-container/pull/10
psr/container requirement to include v1 by @Slamdunk in https://github.com/sanmai/di-container/pull/10Full Changelog: https://github.com/sanmai/di-container/compare/0.1.4...0.1.5
Consider builders when resolving interfaces by @sanmai in https://github.com/sanmai/di-container/pull/7
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.3...0.1.4
Credit where it is due by @sanmai in https://github.com/sanmai/di-container/pull/5
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.2...0.1.3
Make set() a public API, allow extension by @sanmai in https://github.com/sanmai/di-container/pull/4
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.1...0.1.2
Implement builder pattern by @sanmai in https://github.com/sanmai/di-container/pull/3
Full Changelog: https://github.com/sanmai/di-container/compare/0.1...0.1.1
fix: Enable cloned containers to continue self-referencing by @sanmai in https://github.com/sanmai/di-container/pull/87
This change adds a public method __clone().
Full Changelog: https://github.com/sanmai/di-container/compare/0.1.23...0.2
Full Changelog: https://github.com/sanmai/di-container/commits/0.1
Full Changelog: https://github.com/sanmai/di-container/commits/0.1
One column per month.