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
Dependency Injection

Dependency Injection Laravel Package

phug/dependency-injection

Phug Dependency Injection is a lightweight PHP DI container offering autowiring, lazy service resolution, and flexible configuration for clean, testable applications.

View on GitHub
Deep Wiki
Context7

phug/dependency-injection is a lightweight dependency injection container built for the Phug template engine but usable in any PHP project. It resolves class dependencies automatically through reflection-based autowiring, while still allowing explicit bindings, aliases, and shared instances for precise control over object creation.

  • Autowiring via constructor injection and reflection
  • PSR-11-style ContainerInterface for interoperability
  • Lazy instantiation and shared singleton services
  • Simple bindings and aliases through a fluent API
  • Minimal footprint with no heavy dependencies
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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings