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.
nqxcode/phpmorphy
boundwize/pyrameter
testo/facade
headercat/phpstan-extension-ide-helper
yosymfony/parser-utils
innmind/black-box
babenkoivan/elastic-migrations
babenkoivan/elastic-adapter
sandermuller/package-boost-php
sandermuller/boost-core
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle