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). | 13 | 13 | 6 | 128K | 1 | 20.6 | 64.3 | GPL-2.0 | 1 year ago | |
| 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 | 2 | 743K | 3 | 24.9 | 66.4 | BSD-3-Clause | 2 months ago | |
| 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,250 | 1,116 | 44 | 372K | 13 | 32.3 | 45.6 | MIT | 9 years 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. | 312 | 325 | 60 | 1M | 0 | 3.4 | 49.5 | MIT | — | |
| 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,502 | 2,513 | 13 | 3M | 0 | 12.9 | 42.0 | 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,445 | 10,629 | 187 | 17M | 0 | 54.3 | 52.0 | MIT | 1 year ago | |
| psr/http-message | 0.79 | PSR-7 HTTP message interfaces for PHP (Request/Response, Streams, URIs, UploadedFiles). Defines common contracts only—no concrete implementation. Ideal for framework-agnostic middleware and libraries needing interoperable HTTP message types. | 7,097 | 7,212 | 187 | 17M | 0 | 57.7 | 64.3 | MIT | 2 years ago | |
| lctrs/psalm-psr-container-plugin | 0.76 | Psalm plugin that improves static analysis for PSR-11 containers. Adds smarter type inference for container get/has calls so services and dependencies resolve to the right classes, reducing false positives and making container-heavy code safer to refactor. | 17 | 17 | 7 | 8K | 2 | 25.5 | 44.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?