league/container
league/container is a lightweight PSR-11 dependency injection container for PHP. Define entries, factories, and autowiring-friendly services to manage application dependencies cleanly, with modern PHP support and solid tooling for testing and analysis.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| illuminate/container | 0.89 | 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. | 310 | 324 | 60 | 1M | 0 | 3.4 | 50.4 | MIT | — | |
| symfony/dependency-injection | 0.88 | Symfony DependencyInjection standardizes and centralizes object construction with a powerful service container. Define services and parameters, manage autowiring and configuration, and optimize performance through compilation for cleaner, decoupled apps. | 4,169 | 4,201 | 91 | 8M | 0 | 57.3 | 52.9 | MIT | 3 weeks ago | |
| yiisoft/di | 0.88 | 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 | 49 | 54K | 14 | 16.6 | 41.0 | BSD-3-Clause | 7 months ago | |
| avris/container | 0.88 | 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 | — | — | — | |
| psr-discovery/container-implementations | 0.88 | 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 | 469K | 0 | 1.3 | 55.3 | MIT | 1 year ago | |
| container-interop/service-provider | 0.88 | Experimental PSR draft to standardize PHP service providers (“bundles/modules”) for PSR-11 containers. Defines interfaces for registering factories and extensions so modules can share container definitions across frameworks. Not stable before 1.0; expect breaking changes. | 71 | 72 | 10 | 10K | 4 | 3.2 | 30.2 | — | 2 years ago | |
| aura/di | 0.87 | Aura.Di is a PSR-11 dependency injection container for PHP 8+ with constructor and setter injection, interface and trait awareness, configurable wiring with inheritance, and support for serialization. Installable via Composer and fully documented. | 353 | 357 | 63 | 8K | 2 | 28.4 | 21.9 | MIT | 3 months ago | |
| wp-starter/container | 0.86 | Lightweight dependency injection container for PHP. Provides simple service binding and resolution to help structure applications and manage dependencies cleanly, suitable for small projects and framework-agnostic setups. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago | |
| astina/injection-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| bnf/di | 0.85 | 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 | — | — | — | |
| bbrands/test-bundle | 0.85 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| orchid/platform | 0.66 | — | 4,791 | 4,804 | 664 | 25K | 134 | 81.3 | 40.8 | MIT | 4 months ago | |
| andchir/omnipay-bundle | 0.65 | — | 0 | 0 | 3 | 0 | 2 | 7.4 | 1.1 | — | 5 years ago | |
| pmjones/auto-shell | 0.65 | AutoShell maps CLI command names to PHP command classes in a namespace, reflecting on a main method to parse args/options (scalars or arrays). Add a class in the command directory and it becomes available automatically—no dependencies, minimal setup. | 51 | 51 | 2 | 38 | 0 | 15.2 | 3.7 | MIT | 4 months ago | |
| devolicious/oh-dear-app-health-bundle | 0.65 | — | 0 | 0 | 0 | 1 | 0 | 0.7 | 4.2 | — | 2 years ago | |
| darienmh/user-bundle | 0.64 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — |
How can I help you explore Laravel packages today?