Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Injector Laravel Package

yiisoft/injector

PSR-11 compatible dependency injector with autowiring. Resolves and injects dependencies when calling functions or creating objects, supports extra arguments by name or type, and handles variadic parameters. Works with any PSR-11 container.

View on GitHub
Deep Wiki
Context7
1.2.1
  • 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)
1.2.0
  • New #52: Add optional reflection caching (@xepozz, @vjik)
  • Enh #86: Make container optional (@vjik)
1.1.0
  • Enh #64: Support for type intersection when arguments resolving (@roxblnfk)
1.0.5
  • 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)
1.0.1
1.0.0
  • Initial release.
1.2.2
  • Enh #114: Explicitly import classes and functions in "use" section (@mspirkov)
1.0.4
  • Enh #46: Support PSR Container v1.1 and v2.0 (@roxblnfk)
1.0.3
  • Bug #27: Fix PHP 8 compatibility when passing arguments by reference (@roxblnfk)
  • Bug #28: Fix injecting referenced arguments that were unset, internal refactoring (@roxblnfk)
1.0.2
  • 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)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor