psr/container
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bnf/phpstan-psr-container | 0.84 | PHPStan dynamic return type extension for PSR-11 ContainerInterface. Improves type inference for $container->get() so services are typed correctly during static analysis. Install via Composer and include extension.neon (or use phpstan/extension-installer). | 0 | 13 | — | 144K | — | 0.6 | 55.2 | — | — | |
| sanmai/di-container | 0.83 | 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. | 7 | 7 | 3 | 556K | 2 | 24.5 | 65.3 | BSD-3-Clause | 1 week ago | |
| illuminate/container | 0.83 | 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.8 | MIT | — | |
| container-interop/container-interop | 0.83 | container-interop/container-interop defines a common ContainerInterface (get/has) so PHP dependency injection containers can work together. It standardizes basic container behavior for libraries and apps, improving portability and reducing coupling across different container implementations. | 1,247 | 1,116 | 44 | 409K | 13 | 12.3 | 38.7 | MIT | 9 years ago | |
| container-interop/service-provider | 0.82 | 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 | 2K | 4 | 3.2 | 22.4 | — | 2 years ago | |
| psr-discovery/container-implementations | 0.81 | 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 | |
| psr/link | 0.79 | PSR-13 link definition interfaces for PHP. Provides standard LinkInterface and LinkProviderInterface contracts used to describe and expose web links. Not an implementation—interfaces only; use a compatible psr/link-implementation package. | 2,501 | 2,510 | 13 | 3M | 0 | 12.9 | 42.1 | MIT | — | |
| psr/log | 0.79 | PSR-3 logging interfaces for PHP. Provides LoggerInterface, traits, and related classes to standardize how libraries accept and emit log messages. Not a logger implementation—use it to type-hint a logger or build your own PSR-3 compliant logger. | 10,440 | 10,622 | 189 | 18M | 0 | 34.4 | 44.6 | MIT | 1 year ago | |
| league/container | 0.75 | 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. | 867 | 904 | 105 | 2M | 5 | 34.4 | 53.9 | MIT | 2 months ago |
How can I help you explore Laravel packages today?