phpbench/container
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| friends-of-behat/service-container-extension | 0.83 | Behat extension that lets you declare your own services inside the Behat container without writing an extension, by importing XML, YAML, or PHP service definition files into behat.yml. | 114 | 114 | 4 | 13K | 0 | 15.1 | 31.6 | MIT | 4 months ago | |
| yiisoft/di | 0.83 | PSR-11 compatible dependency injection container for PHP 8.1+. Supports autowiring plus constructor, method and property injection, aliasing, service providers, delegated/composite containers, circular reference detection, and state reset for long-running workers. | 236 | 238 | 49 | 39K | 14 | 10.7 | 36.7 | BSD-3-Clause | 11 months ago | |
| zendframework/zend-container-config-test | 0.81 | Common test suite for PSR-11 containers configured with a subset of zend-servicemanager/Expressive config. Extend AbstractContainerTest and add traits for aliases, factories, services, etc. Supports Aura.Di, Pimple, and zend-servicemanager. Repository abandoned; moved to laminas. | 1 | 1 | 0 | 15 | 0 | 0.6 | 9.1 | BSD-3-Clause | 7 years ago | |
| symfony/dependency-injection | 0.81 | 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 | |
| illuminate/container | 0.80 | 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 | 4 days ago | |
| 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 | |
| avris/container | 0.80 | 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 | — | — | |
| friends-of-behat/cross-container-extension | 0.80 | Deprecated Behat extension that lets you inject services and parameters across multiple service containers. Intended for use with FriendsOfBehat ContextServiceExtension or ServiceContainerExtension; migrate to SymfonyExtension v2 instead. | 93 | 98 | 5 | 1K | 0 | 1.7 | 11.4 | MIT | 8 years ago | |
| php-di/php-di | 0.78 | PHP-DI is a practical, powerful, framework-agnostic dependency injection container for PHP. It helps manage services and wiring with autowiring and flexible configuration, making applications easier to build, test, and maintain across any framework. | 2,772 | 2,855 | 320 | 4M | 56 | 49.2 | 64.3 | MIT | 1 year ago | |
| psr/container | 0.77 | 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/container | 0.75 | 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 | |
| matthiasnoback/phpunit-test-service-container | 0.74 | — | 1 | 1 | 4 | 368 | 0 | 6.3 | 32.4 | MIT | 1 year ago | |
| pimple/pimple | 0.74 | Pimple is a small Dependency Injection Container for PHP. It helps you manage services and parameters, define lazy-loaded objects via closures, share singletons, and extend existing definitions—ideal for simple apps and libraries needing lightweight DI without a framework. | 2,660 | 2,767 | 299 | 1M | 0 | 22.3 | 38.0 | MIT | — | |
| matthiasnoback/symfony-dependency-injection-test | 0.73 | — | 242 | 243 | 49 | 168K | 2 | 21.3 | 43.5 | MIT | 8 months ago |
How can I help you explore Laravel packages today?