yiisoft/injector
PSR-11 compatible dependency injector with autowiring. Resolves and injects dependencies when calling functions or creating objects, supports extra arguments by name or type, and handles variadic parameters. Works with any PSR-11 container.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| yiisoft/di | 0.84 | 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 | 18.9 | 37.3 | BSD-3-Clause | 6 months ago | |
| symfony/dependency-injection | 0.83 | Symfony DependencyInjection standardizes and centralizes object construction with a powerful service container. Define, configure, and wire services, manage parameters and service lifecycles, and enable autowiring and compilation for efficient, testable apps. | 4,169 | 4,201 | 91 | 8M | 0 | 57.1 | 53.0 | MIT | 1 week 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 | — | 0 | — | 0.0 | — | — | — | |
| illuminate/container | 0.81 | 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.8 | MIT | — | |
| league/container | 0.81 | 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 | |
| php-di/php-di | 0.80 | 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,773 | 2,851 | 323 | 2M | 56 | 53.0 | 62.3 | MIT | 9 months ago | |
| symplify/autowire-array-parameter | 0.78 | Automatically inject array parameters into PHP services with minimal configuration. Symplify Autowire Array Parameter resolves array constructor arguments from container config, reducing boilerplate and making service wiring cleaner in Symfony/Laravel-style DI setups. | 60 | 62 | 2 | 57K | 0 | 0.2 | 28.9 | MIT | — | |
| astina/injection-bundle | 0.78 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| symfony/framework-bundle | 0.78 | Symfony FrameworkBundle tightly integrates Symfony components into the full-stack framework, providing core framework services and configuration. Part of the main Symfony repository; see official docs for contributing, issues, and pull requests. | 3,571 | 3,584 | 123 | 5M | 0 | 55.4 | 50.8 | MIT | 1 week ago | |
| symplify/easy-ci | 0.76 | Automate PHP/Laravel CI chores with Symplify Easy CI: run code quality tools consistently, speed up setup, and keep checks uniform across projects. Handy for teams standardizing linting, static analysis, and test workflows in one place. | 18 | 20 | 3 | 41K | 0 | 0.2 | 45.3 | MIT | — |
How can I help you explore Laravel packages today?