fastd/container
A lightweight PSR-11 dependency injection container for PHP applications. It provides service registration, lazy loading, autowiring, aliases, and service providers, with simple integration into the FastD framework and other PSR-compatible projects.
Consider it if:
Look elsewhere if:
illuminate/container — zero marginal cost, best-in-class documentation, contextual binding, interface binding, and a massive hiring and Stack Overflow ecosystem. Adding a second container here is pure downside; this is the strongest "no" signal for a Laravel-context evaluation.To executives: This is a small, MIT-licensed dependency-injection container from the FastD micro-framework ecosystem. It is free, technically sound, and low-risk to trial in a non-critical internal service. It is not something to standardize on: three GitHub stars and zero dependent packages mean no community, no commercial support, and a single-maintainer bus factor. My recommendation is to treat it as a prototype-only option and default to the container that ships with whichever framework we've already chosen — that choice has a lower total cost of ownership and a far deeper hiring pool. If we adopt it, we isolate it behind PSR-11 interfaces so it stays replaceable.
To engineering: It's PSR-11 compliant, so the interface is the contract — wire it in one place at the composition root, never let it leak into domain code, and swapping to Symfony DI or PHP-DI later becomes a contained change rather than a rewrite. Adopt only if FastD is already the framework decision; otherwise reach for the framework's native container first.
How can I help you explore Laravel packages today?