league/container
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| slince/di | 0.88 | 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 | — | — |
|
| slick/di | 0.87 | 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 | |
| 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 | |
| league/object-mapper | 0.86 | A lightweight object-to-object mapper for PHP that converts one class into another using reflection and PHP attributes. Define property mappings, handle nested objects, arrays, and collections, and reduce boilerplate when transforming DTOs, entities, and API payloads. | 36 | 36 | 4 | 1K | 3 | 1.0 | 21.8 | MIT | — | |
| illuminate/container | 0.86 | 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 | |
| league/route | 0.86 | League\Route is a fast, flexible routing and dispatch library for PHP. It supports PSR-7/PSR-15 middleware, route groups, named routes, controllers, and custom strategies, making it easy to build clean, performant HTTP applications. | 669 | 873 | 127 | 82K | 5 | 22.2 | 33.5 | MIT | 3 months ago | |
| internal/container | 0.86 | 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 | |
| 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 | |
| container-interop/service-provider | 0.86 | 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 | |
| mnapoli/php-di | 0.86 | 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 | |
| geekcell/container-facade | 0.86 | 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 | |
| nette/di | 0.86 | 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 | |
| league/uri-schemes | 0.85 | A PHP library for working with URI schemes, offering dedicated classes to parse, validate, and manipulate HTTP, FTP, WebSocket, and other scheme-specific URIs. Built on league/uri components for consistent, standards-compliant URI handling. | 210 | 223 | 8 | 17K | 1 | 0.7 | 18.6 | MIT | 7 years ago | |
| psr-discovery/container-implementations | 0.85 | 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 | |
| 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 | |
| michael-rubel/laravel-enhanced-container | 0.85 | 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 | 546 | 0 | 0.8 | 11.9 | MIT | 1 year ago | |
| laminas/laminas-servicemanager | 0.85 | 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 | |
| liip/container-wrapper-bundle | 0.85 | 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 | |
| league/tactician-container | 0.85 | PSR-11 container plugin for League Tactician that lazily loads command handlers from your DI container. Install via Composer and integrate with Tactician to resolve handlers on demand for cleaner wiring and faster bootstrap. | 77 | 77 | 10 | 77K | 2 | 2.3 | 41.2 | MIT | 4 years ago | |
| jenssegers/lean | 0.85 | Lean is a lightweight Laravel/PHP package from Jens Segers that provides a simple, focused API for adding minimal functionality to your applications without extra overhead. Ideal for developers who want clean, easy-to-integrate tools. | 31 | 31 | 5 | 181 | 3 | 1.3 | 12.3 | — | 7 years ago |
How can I help you explore Laravel packages today?