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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| nette/di | 0.85 | Nette DI is a fast, secure dependency injection container for PHP. It compiles configuration into optimized PHP for performance, supports autowiring, service factories, extensions, and strong type safety. Ideal for Nette apps or standalone use. | 920 | 927 | 74 | 373K | 16 | 42.3 | 56.7 | NOASSERTION | 5 months ago | |
| 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 | 12K | 3 | 23.3 | 47.4 | GPL-2.0 | 8 months ago | |
| symfony/dependency-injection | 0.84 | Symfony DependencyInjection component standardizes and centralizes object construction via a service container. Define services, parameters, and wiring, support autowiring and compilation, and manage dependencies consistently across applications and libraries. | 4,170 | 4,206 | 91 | 7M | 0 | 53.5 | 52.6 | MIT | 1 week 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,015 | 10,054 | 51 | 16M | 4 | 49.8 | 53.9 | MIT | 4 years ago | |
| aura/di | 0.83 | Aura.Di is a PSR-11 dependency injection container for PHP 8+, supporting serializable containers, constructor and setter injection, interface/trait awareness, and configuration inheritance. Lightweight, standards-friendly, and flexible for complex apps. | 352 | 356 | 63 | 5K | 1 | 32.8 | 19.2 | MIT | 1 year 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. | 312 | 325 | 60 | 1M | 0 | 3.4 | 49.5 | 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 | 5K | 2 | 24.1 | 47.7 | BSD-3-Clause | 5 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 | 0 | 0 | 10.6 | — | BSD-3-Clause | 6 years ago | |
| php-di/invoker | 0.80 | Lightweight PHP library to call any callable with automatic dependency injection. Resolves function and method parameters by name and type-hints, integrates with PHP-DI, and supports default values for flexible invocations in frameworks, controllers, and CLI tools. | 268 | 272 | 20 | 2M | 2 | 29.2 | 62.5 | MIT | 7 months ago |
How can I help you explore Laravel packages today?