PackageTrack
Sign in Get early access

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 2026
2026
Release Pre-release

Releases

latest 25
  1. 0.1.23 11 Aug 2026
    Release notes

    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

    Open source →
  2. 0.1.22 09 Aug 2026
    Release notes

    What's Changed

    • Require sanmai/pipeline ^7.10, drop 6.x by @sanmai in #86

    Full Changelog: 0.1.21...0.1.22

    Open source →
  3. 0.1.21 09 Aug 2026
    Release notes

    What's Changed

    • Allow set()/bind() to accept a plain implementation class name by @sanmai in #79

    Full Changelog: 0.1.20...0.1.21

    Open source →
  4. 0.1.20 09 Aug 2026
    Release notes

    What's Changed

    • Fix has() for injected instances by @sanmai in #84

    Full Changelog: 0.1.19...0.1.20

    Open source →
  5. 0.1.19 09 Aug 2026
    Release notes

    What's Changed

    Changes

    • Clear prebuilt instances when bind() overrides a service by @sanmai in #83

    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

    Open source →
  6. 0.1.18 09 Aug 2026
    Release notes

    What's Changed

    • Re-binding overrides factories and builders by @sanmai in #80

    Full Changelog: 0.1.17...0.1.18

    Open source →
  7. 0.1.17 01 Jun 2026
    Release notes

    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

    • Test that domain interface bearing container loses to a registered provider by @sanmai in #71

    Full Changelog: 0.1.16...0.1.17

    Open source →
  8. 0.1.16 30 May 2026
    Release notes

    What's Changed

    • Skip optional dependencies for missing types by @sanmai in #69

    Full Changelog: 0.1.15...0.1.16

    Open source →
  9. 0.1.15 30 May 2026
    Release notes

    What's Changed

    • Resolve default values for scalars when autowiring by @sanmai in #67

    Full Changelog: 0.1.14...0.1.15

    Open source →
  10. 0.1.14 30 May 2026

    Nothing published for this version

  11. 0.1.13 30 May 2026

    Nothing published for this version

  12. 0.1.12 27 Jan 2026

    Nothing published for this version

  13. 0.1.11 13 Jan 2026

    Nothing published for this version

  14. 0.1.10 12 Jan 2026

    Nothing published for this version

  15. 0.1.9 12 Jan 2026

    Nothing published for this version

  16. 0.1.8 03 Jan 2026

    Nothing published for this version

  17. 0.1.7 03 Jan 2026

    Nothing published for this version

  18. 0.1.6 02 Jan 2026

    Nothing published for this version

  19. 0.1.5 04 Aug 2025

    Nothing published for this version

  20. 0.1.4 24 Jul 2025

    Nothing published for this version

  21. 0.1.3 24 Jul 2025

    Nothing published for this version

  22. 0.1.2 24 Jul 2025

    Nothing published for this version

  23. 0.1.1 23 Jul 2025

    Nothing published for this version

  24. 0.2 11 Aug 2026
    Release notes

    What's Changed

    BC Breaks

    • fix: Enable cloned containers to continue self-referencing by @sanmai in #87

    This change adds a public method __clone().

    Changes

    • feat: autowire ContainerInterface into constructor dependencies by @sanmai in #97

    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

    Open source →
  25. 0.1 23 Jul 2025

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive