sergix44/container
A lightweight PSR-11 compatible dependency injection container for PHP, with bindings, singletons, aliases, and automatic constructor resolution. It keeps service wiring simple and testable for small apps and libraries, without requiring a full framework.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| internal/container | 0.83 | A lightweight service container for Laravel and PHP applications, offering straightforward bindings, singleton management, and dependency resolution to keep internal wiring explicit, modular, and testable. Ideal for package internals and smaller codebases that need clean, predictable object construc... | 1 | 0 | 0 | 60K | 1 | 17.3 | 63.6 | BSD-3-Clause | 1 month ago | |
| godruoyi/easy-container | 0.82 | godruoyi/easy-container is a lightweight PHP/Laravel service container that simplifies dependency injection, binding, and singleton management. Its small API makes registering and resolving services fast, clean, and easy to integrate into Laravel applications. | 33 | — | 4 | — | 0 | 0.6 | — | — | 3 years ago | |
| psr/container | 0.82 | 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. | 9,992 | 10,026 | 54 | 30M | 3 | 29.7 | 49.4 | MIT | 5 years ago | |
| avris/container | 0.81 | 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 | — | 9 | — | 0.0 | 13.8 | — | — | |
| slince/di | 0.81 | A lightweight, PSR-11 compatible dependency injection container for PHP. Slince DI supports constructor and setter injection, service providers, aliases, lazy loading, and shared instances, giving you a simple, flexible foundation for managing object dependencies in small to medium applications. | 20 | — | 5 | — | 0 | 0.6 | 0.4 | — | — |
|
| 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 | — | — | — | |
| symfony/dependency-injection | 0.80 | The Symfony DependencyInjection component standardizes and centralizes object construction in your application, offering a flexible service container with autowiring, configuration, and compilation support. | 4,167 | 4,200 | 92 | 13M | 0 | 58.4 | 56.5 | MIT | 1 week ago | |
| phpbench/container | 0.80 | Lightweight, extensible PHP dependency injection container with parameters and service tagging. Register services as closures, load extensions to provide defaults and wiring, and discover tagged services. Implements container-interop for portability. | 15 | 16 | 6 | 744K | 0 | 4.8 | 57.3 | MIT | 1 year ago | |
| ixnode/php-container | 0.80 | A lightweight PHP dependency injection container for registering, binding, and resolving services. It offers a simple API for managing object dependencies, helping keep application code decoupled, organized, and easier to test. | 1 | — | 0 | — | 0 | 2.4 | — | MIT | 10 months ago |
|
| webignition/container-aware-migration | 0.80 | Container-aware migration support for Laravel packages, letting migrations resolve services and dependencies from the application container instead of relying on hard-coded class instantiation. Useful for packages that need flexible, testable migrations across differing application setups. | 1 | 1 | 0 | 0 | 0 | 0.0 | — | — | — | |
| sanmai/di-container | 0.80 | A straightforward PSR-11 dependency injection container with zero-configuration autowiring. It resolves constructor dependencies via reflection, reuses created objects, maps interfaces to concrete implementations, and supports builder objects for complex construction. | 7 | 7 | 4 | 1M | 0 | 24.2 | 63.6 | BSD-3-Clause | 2 months ago | |
| league/container | 0.80 | League/Container is a fast, lightweight, PSR-11 compliant dependency injection container for PHP. It offers constructor autowiring, service providers, inflectors, and lazy loading out of the box, requires no configuration, and supports PHP 8.3, 8.4, and 8.5. | 864 | 906 | 104 | 3M | 5 | 25.7 | 53.6 | MIT | 7 months ago | |
| container-interop/service-provider | 0.79 | 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. | 70 | 71 | 10 | 14K | 4 | 3.2 | 32.2 | — | 2 years ago | |
| geekcell/container-facade | 0.79 | Laravel package that adds lightweight container-backed facades, letting you resolve services from the IoC container via a simple static-like interface. Useful for organizing service access and reducing boilerplate when binding and retrieving dependencies. | 1 | 1 | 1 | 124 | 0 | 0.2 | 17.5 | MIT | 3 years ago | |
| paysera/lib-dependency-injection | 0.79 | Paysera's lightweight dependency injection container for PHP offers simple service registration, autowiring, and lazy instantiation. It helps decouple components and manage dependencies cleanly in small to medium applications through a straightforward, framework-agnostic API. | 2 | — | 4 | — | 0 | 18.2 | — | MIT | 1 month ago |
|
| illuminate/container | 0.79 | The Illuminate Container is Laravel's powerful dependency injection container. It manages class dependencies, binds and resolves services, supports contextual and method injection, and provides a simple, flexible foundation for building decoupled PHP applications. | 34,987 | 322 | 12,028 | 2M | 55 | 78.2 | 60.4 | MIT | 3 days ago |
How can I help you explore Laravel packages today?