PackageTrack
Sign in Get early access

yiisoft/injector

PSR-11 compatible injector. Executes a callable and makes an instances by injecting dependencies from a given DI container.

1.2.1 3.8M downloads/mo #1291 most downloaded on Packagist yiisoft/injector

What this package is like to depend on

Last release 8 months ago

01 Dec 2025

Ships unpredictably

gaps range from 8 days to 2.0 years

Most releases are documented

notes for 10 of 15 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

15 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

15 releases · Mar 2020 to Dec 2025
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 1.2.1 01 Dec 2025
    Release notes
    • Chg #105, #111: Change PHP constraint in composer.json to 7.4 - 8.5 (@vjik)
    • Enh #105: Adjust pretty name of closures on PHP 8.4 in exception messages (@staabm)
    • Enh #98: Refactor Injector::invoke() to improve debug trace (@xepozz)

    Full changelog

    Open source →
    Release notes
    • Chg #105, #111: Change PHP constraint in composer.json to 7.4 - 8.5 (@vjik)
    • Enh #105: Adjust pretty name of closures on PHP 8.4 in exception messages (@staabm)
    • Enh #98: Refactor Injector::invoke() to improve debug trace (@xepozz)
    Open source →
  2. 1.2.0 20 Dec 2023
    Release notes
    Open source →
    Release notes
    • New #52: Add optional reflection caching (@xepozz, @vjik)
    • Enh #86: Make container optional (@vjik)
    Open source →
  3. 1.1.0 18 Jul 2022
    Release notes
    • Enh #64: Support for type intersection when arguments resolving (@roxblnfk)
    Open source →
    Release notes
    • Enh #64: Support for type intersection when arguments resolving (@roxblnfk)
    Open source →
  4. 1.0.5 22 May 2022
    Release notes
    • Enh #56: Declare return value in Injector::make() and improve psalm annotations (@vjik)
    • Enh #63: Support for PHP 8.1 features when rendering closures in exceptions (@roxblnfk)
    Open source →
    Release notes
    • Enh #56: Declare return value in Injector::make() and improve psalm annotations (@vjik)
    • Enh #63: Support for PHP 8.1 features when rendering closures in exceptions (@roxblnfk)
    Open source →
  5. 1.0.4 10 Mar 2021
    Release notes
    • Enh #46: Support PSR Container v1.1 and v2.0 (@roxblnfk)
    Open source →
  6. 1.0.3 05 Nov 2020
    Release notes
    • Bug #27: Fix PHP 8 compatibility when passing arguments by reference (@roxblnfk)
    • Bug #28: Fix injecting referenced arguments that were unset, internal refactoring (@roxblnfk)
    Open source →
  7. 1.0.2 28 Aug 2020
    Release notes
    • Enh #17: Support PHP 8 Union Types (@roxblnfk)
    • Bug #19: Fix PHP 8 compatibility in ArgumentException (@roxblnfk)
    • Bug #19: Remove unneeded passing PHP 8 internal classes as trailing arguments (@roxblnfk)
    Open source →
  8. 1.0.1 17 May 2020
    Release notes
    • Enh #15: Support PHP 8 (@samdark)
    Open source →
  9. 1.0.0 02 May 2020
    Release notes
    • Initial release.
    Open source →
  10. 0.0.6 25 Apr 2020
    Release notes

    Minor corrections in tests

    Open source →
  11. 0.0.5 17 Apr 2020

    Nothing published for this version

  12. 0.0.4 17 Apr 2020

    Nothing published for this version

  13. 0.0.3 08 Apr 2020

    Nothing published for this version

  14. 0.0.2 04 Apr 2020

    Nothing published for this version

  15. 0.0.1 27 Mar 2020

    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