level-2/dice
Dice is a lightweight, dependency-free dependency injection container for PHP. It provides automatic constructor and setter injection, factory callbacks, shared instances, and simple configuration for decoupled, testable applications.
Dice is a lightweight, easy-to-use dependency injection container for PHP, inspired by Google Guice. It automatically resolves class dependencies and lets you wire objects through constructor or setter injection without boilerplate configuration. Define shared instances, factory closures, and substitution rules to keep application code decoupled and testable.
How can I help you explore Laravel packages today?