sanmai/di-container
dependency injection container with automatic constructor dependency resolution
0.1.23
6.4M downloads/mo
#634 most downloaded on Packagist
sanmai/di-container
What this package is like to depend on
Last release 12 days ago
11 Aug 2026
Release timing varies
gaps range from 1 weeks to 5 months
Some releases are documented
notes for 10 of 25 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
25 releases · first in 2025
19 releases in the last 12 months
see the full history below
Release timeline
25 releases · Jul 2025 to Aug 2026Releases
latest 25-
0.1.2311 Aug 2026Release notes
Open source →What's Changed
Changes
Chores
- Update the type check in inject() to preserve container's state by @sanmai in #89
- Add a benchmark for interface resolution by @sanmai in #90
- Update inline documentation for benchmarks, simplify Makefile by @sanmai in #91
- Test injected container references survive cloning by @sanmai in #93
- Test removal of the container self-reference by @sanmai in #94
- Narrow benchmark workflow trigger by @sanmai in #95
- Test that a subclass can forbid cloning by @sanmai in #96
Full Changelog: 0.1.22...0.1.23
-
0.1.2209 Aug 2026 -
0.1.2109 Aug 2026 -
0.1.2009 Aug 2026Release notes
Open source → -
0.1.1909 Aug 2026Release notes
Open source →What's Changed
Changes
Chores
- Validate behavior with invokable builders by @sanmai in #81
- Assert has() reflects autowired services once resolved by @sanmai in #82
Full Changelog: 0.1.18...0.1.19
-
0.1.1809 Aug 2026 -
0.1.1701 Jun 2026Release notes
Open source →What's Changed
Changes
- More robust constructor parameter resolution by @sanmai in #70
- Default value fallback for composite types and variadics by @sanmai in #72
Chores
Full Changelog: 0.1.16...0.1.17
-
0.1.1630 May 2026 -
0.1.1530 May 2026 -
0.1.1430 May 2026Nothing published for this version
-
0.1.1330 May 2026Nothing published for this version
-
0.1.1227 Jan 2026Nothing published for this version
-
0.1.1113 Jan 2026Nothing published for this version
-
0.1.1012 Jan 2026Nothing published for this version
-
0.1.912 Jan 2026Nothing published for this version
-
0.1.803 Jan 2026Nothing published for this version
-
0.1.703 Jan 2026Nothing published for this version
-
0.1.602 Jan 2026Nothing published for this version
-
0.1.504 Aug 2025Nothing published for this version
-
0.1.424 Jul 2025Nothing published for this version
-
0.1.324 Jul 2025Nothing published for this version
-
0.1.224 Jul 2025Nothing published for this version
-
0.1.123 Jul 2025Nothing published for this version
-
0.211 Aug 2026Release notes
Open source →What's Changed
BC Breaks
This change adds a public method
__clone().Changes
Chores
- Assert factory called once for container dependencies by @sanmai in #99
- Extend self-referencing interface test, add clone test by @sanmai in #101
- Add SelfResolution benchmark for repeated container self-fetch by @sanmai in #100
- Test that clone throws on self-referencing interfaces across providers by @sanmai in #102
Full Changelog: 0.1.23...0.2
-
0.123 Jul 2025Nothing published for this version