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

Di Container Laravel Package

sanmai/di-container

Lightweight PSR-11 compatible dependency injection container for PHP. Supports autowiring via reflection, bindings and shared services, simple configuration, and fast resolution with minimal boilerplate—suitable for small apps and libraries needing a straightforward DI container.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables build vs buy decision for lightweight DI needs, avoiding custom implementation costs
  • Supports modular architecture for small-to-medium projects where framework coupling is undesirable
  • Critical for library development requiring DI without imposing framework dependencies
  • Aligns with roadmap goals for testability and extensibility in micro-apps or standalone services

When to Consider This Package

✅ When developing standalone libraries or microservices needing DI without framework dependencies
✅ For small-to-medium PHP projects prioritizing simplicity and minimal boilerplate
✅ When needing lazy instantiation or singleton services without heavy DI tooling
❌ When using Laravel/Symfony (built-in DI is superior for those frameworks)
❌ For enterprise-scale applications requiring advanced features like autowiring or complex lifecycle management
❌ If community support and long-term maintenance are critical (low stars indicate limited adoption)

How to Pitch It (Stakeholders)

Executives: "This lightweight DI container reduces technical debt by providing a proven, framework-agnostic solution for dependency management. It accelerates development cycles while ensuring maintainable code—saving costs and enabling faster feature delivery for small-to-medium projects."
Engineering: "With a minimal API for service registration and resolution, it integrates seamlessly without adding complexity. Features like lazy instantiation and singleton support make it perfect for libraries and micro-apps where

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
milesj/emojibase
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