Weave 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)

Full changelog

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
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.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style