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 | Declare custom Symfony DI services in Behat without writing a full extension. Import XML/YAML/PHP service definition files via behat.yml so your contexts and helpers can be wired through the Behat service container. | 114 | 114 | 5 | 13K | 0 | 2.5 | 28.4 | MIT | 5 years 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 | 239 | 46 | 27K | 14 | 19.5 | 38.2 | BSD-3-Clause | 6 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 | 6 years ago | |
| illuminate/container | 0.80 | 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. | 311 | 324 | 59 | 1M | 0 | 3.3 | 49.9 | MIT | — | |
| sanmai/di-container | 0.80 | 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 | 3 | 556K | 2 | 24.5 | 65.3 | BSD-3-Clause | 6 days 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 | — | 0 | — | 0.0 | — | — | — | |
| 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 | 4K | 0 | 1.7 | 15.5 | MIT | 8 years 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. | 10,012 | 10,048 | 53 | 18M | 3 | 29.6 | 45.9 | MIT | 4 years ago | |
| matthiasnoback/symfony-dependency-injection-test | 0.76 | — | 242 | 243 | 49 | 189K | 2 | 25.7 | 45.8 | MIT | 3 months ago | |
| matthiasnoback/phpunit-test-service-container | 0.74 | — | 1 | 1 | 5 | 516 | 0 | 11.0 | 35.7 | MIT | 7 months 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,666 | 2,770 | 302 | 1M | 0 | 22.4 | 36.8 | MIT | — | |
| league/container | 0.73 | league/container is a lightweight PSR-11 dependency injection container for PHP. Define entries, factories, and autowiring-friendly services to manage application dependencies cleanly, with modern PHP support and solid tooling for testing and analysis. | 867 | 904 | 105 | 2M | 5 | 34.4 | 53.9 | MIT | 2 months ago |
How can I help you explore Laravel packages today?