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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| avris/container | 0.86 | A lightweight PHP dependency injection container with simple autowiring and service definitions. Ideal for small apps and libraries needing PSR-style container access, configurable bindings, and clean object construction without a full framework. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| joomla/di | 0.84 | PSR-11 compatible dependency injection (IoC) container from the Joomla Framework. Provides a powerful, flexible DI solution for PHP 8.1+ applications, with Composer installation and support for stable/unstable releases. | 15 | 16 | 19 | 16K | 3 | 6.0 | 43.0 | GPL-2.0 | 10 months ago | |
| psr/container | 0.83 | The PSR-11 Container Interface defines core abstractions for dependency injection in PHP. It’s a standard abstraction, not an implementation—used by DI containers like Laravel’s Illuminate\Container. Essential for dependency management, ensuring interoperability across container implementations. | 10,012 | 10,048 | 53 | 18M | 3 | 29.6 | 45.9 | MIT | 4 years ago | |
| yiisoft/di | 0.82 | PSR-11 compatible dependency injection container for PHP 8.1+. Supports autowiring plus constructor, method and property injection, aliasing, service providers, delegated/composite containers, circular reference detection, and state reset for long-running workers. | 236 | 239 | 46 | 27K | 14 | 19.0 | 37.3 | BSD-3-Clause | 6 months ago | |
| illuminate/container | 0.82 | Illuminate Container is Laravel’s lightweight dependency injection container for resolving classes, managing bindings, singletons, contextual dependencies, and automatic constructor injection. It powers service resolution and inversion of control in Laravel apps and packages. | 311 | 324 | 59 | 1M | 0 | 3.3 | 49.9 | MIT | — | |
| laminas/laminas-container-config-test | 0.81 | Test helper for Laminas container configuration: validates service/container config arrays and wiring in a predictable way for unit tests. Useful for ensuring factories, aliases, and dependencies are registered correctly across your Laminas modules. | 5 | 5 | 6 | 4K | 2 | 11.3 | 41.7 | BSD-3-Clause | 7 months ago | |
| zendframework/zend-container-config-test | 0.81 | Common test suite for PSR-11 containers configured with a subset of zend-servicemanager/Expressive config. Extend AbstractContainerTest and add traits for aliases, factories, services, etc. Supports Aura.Di, Pimple, and zend-servicemanager. Repository abandoned; moved to laminas. | 1 | 1 | 0 | 15 | 0 | 0.6 | 9.1 | BSD-3-Clause | 6 years ago | |
| bnf/di | 0.80 | Lightweight dependency injection container for PHP/Laravel projects. Configure bindings and resolve services automatically with simple, minimal setup—ideal for small apps or packages that need clean inversion of control without a heavy framework. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| psr-discovery/container-implementations | 0.75 | Auto-discovers an available PSR-11 container at runtime by checking for well-known implementations and returning the first match. Ideal for SDKs/libraries that want PSR-11 support without hard dependencies or user configuration. | 6 | 6 | 1 | 439K | 0 | 1.3 | 55.3 | MIT | 1 year ago |
How can I help you explore Laravel packages today?