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

Invoker Laravel Package

php-di/invoker

Lightweight PHP library to call any callable with automatic dependency injection. Resolves function and method parameters by name and type-hints, integrates with PHP-DI, and supports default values for flexible invocations in frameworks, controllers, and CLI tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables automated dependency resolution for function/method calls, reducing boilerplate and improving code maintainability
  • Supports roadmap for building modular, testable services by decoupling dependency injection from business logic
  • Build vs buy: leverages a proven, lightweight solution instead of custom implementation (saves 15-20% dev time on DI-related tasks)
  • Key use cases: API controllers, CLI commands, and event handlers requiring DI without manual parameter passing

When to Consider This Package

  • ✅ Adopt when using PHP-DI or needing a dedicated callable invoker for dependency injection
  • ✅ When codebase has multiple services requiring dynamic dependency
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4