hyperf/di
Hyperf/DI is a lightweight dependency injection container for Hyperf, offering PSR-11 compatibility, annotation-based injection, AOP support, and flexible bean management for PHP applications.
hyperf/di is effectively a dependency on the Hyperf component model. This should trigger a deliberate vendor/runtime risk decision, especially for teams with Laravel or Symfony experience.Illuminate\Container already provides auto-resolution, contextual binding, and tagging; replacing it with Hyperf DI means changing frameworks, not swapping a package.hyperf/framework; this package should be consumed as part of a pinned Hyperf stack, not adopted independently.hyperf/di provides a mature-pattern DI container with annotations, AOP, and coroutine-aware lifecycle management. MIT license and active releases lower licensing risk. The real risk is runtime and ecosystem lock-in to Hyperf, plus a smaller hiring and support pool than Laravel/Symfony.hyperf/di via the pinned framework distribution, document the lock-in, and validate operational readiness for Swoole/Swow before committing.How can I help you explore Laravel packages today?