slince/di
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| illuminate/container | 0.90 | 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 | |
| internal/container | 0.88 | 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 | |
| mlo/console-bundle | 0.87 | mlo/console-bundle is a Laravel/PHP package that provides a lightweight console bundle for structuring and registering custom commands. It helps organize command logic, simplify CLI workflows, and integrate cleanly with existing Laravel applications. | 3 | 3 | 0 | 0 | 0 | 0.0 | — | MIT | 6 years ago | |
| psr-discovery/container-implementations | 0.87 | 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 | 478K | 0 | 1.3 | 55.3 | MIT | 1 year ago | |
| michael-rubel/laravel-enhanced-container | 0.87 | A lightweight extension for Laravel’s service container, offering convenient helpers for binding, resolving, and managing dependencies. Simplify contextual bindings, singletons, and instance handling while keeping service providers clean, expressive, and easier to test. | 88 | 88 | 3 | 562 | 0 | 0.8 | 11.9 | MIT | 1 year ago | |
| container-interop/service-provider | 0.87 | 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 | |
| league/container | 0.86 | 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 | |
| psr/container | 0.86 | 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 | |
| symfony/dependency-injection | 0.86 | 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 | |
| slick/di | 0.86 | Slick\DI is a lightweight dependency injection container for PHP that wires services through autowiring, explicit bindings, and lazy resolution. It offers a small, PSR-11 friendly API for managing object lifecycles in Laravel, Slim, and standalone applications. | 0 | 0 | 0 | 232 | 0 | 0.0 | 32.7 | NOASSERTION | 2 years ago | |
| laminas/laminas-servicemanager | 0.86 | Laminas ServiceManager is a PSR-11 compatible dependency injection container for PHP. It supports factory-based service creation, aliases, abstract factories, delegators, and lazy loading, making it a flexible foundation for managing object dependencies. | 160 | 162 | 63 | 2M | 13 | 27.5 | 69.8 | BSD-3-Clause | 5 months ago | |
| aura/di | 0.86 | Aura.Di is a serializable dependency injection container for PHP 8+ supporting constructor and setter injection, interface and trait awareness, configuration inheritance, and PSR-11 compliance. It has no external implementation dependencies and installs via Composer as aura/di. | 352 | 357 | 63 | 16K | 1 | 33.1 | 27.2 | MIT | 4 days ago | |
| bnf/di | 0.86 | 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 | — | — | — | |
| liip/container-wrapper-bundle | 0.86 | Symfony bundle that provides a lightweight wrapper around the service container, letting you inject a container interface into services and fetch dependencies lazily without coupling code to Symfony's full container. | 29 | 29 | 1 | 0 | 1 | 0.3 | — | — | 11 years ago | |
| sanmai/di-container | 0.85 | 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 | |
| mnapoli/php-di | 0.85 | PHP-DI is a practical, feature-rich dependency injection container for PHP. It offers autowiring, constructor injection, flexible definitions, lazy dependencies, and PSR-11 compatibility, helping you build cleaner, more testable applications with minimal configuration and boilerplate. | 2,773 | 2,775 | 320 | 421 | 56 | 40.5 | 24.0 | MIT | 1 year ago | |
| joomla/di | 0.85 | 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 | 20 | 23K | 3 | 3.3 | 44.3 | GPL-2.0 | 1 year ago | |
| orno/di | 0.85 | Orno\Di is a lightweight, PSR-11 compatible dependency injection container for PHP. It supports constructor and setter injection, autowiring, lazy service resolution, aliases, and shared instances, making it easy to wire dependencies cleanly in small applications and custom frameworks. | 0 | 1 | — | 0 | — | 0.0 | — | — | — | |
| hyperf/di | 0.85 | Hyperf/DI is a lightweight dependency injection container for Hyperf, offering PSR-11 compatibility, annotation-based injection, AOP support, and flexible bean management for PHP applications. | 6,913 | 18 | 1,296 | 73K | 365 | 78.8 | 46.6 | MIT | 3 weeks ago | |
| nette/di | 0.83 | Nette DI is a fast, flexible dependency injection container for PHP with smart autowiring and compile-time configuration. It helps structure applications cleanly, reduce boilerplate, and catch wiring errors early. Ideal for Nette Framework and standalone PHP projects. | 922 | 928 | 73 | 1M | 3 | 36.9 | 50.9 | NOASSERTION | 1 week ago |
How can I help you explore Laravel packages today?