yiisoft/di
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| joomla/di | 0.89 | 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 | 19 | 15K | 3 | 4.2 | 42.0 | GPL-2.0 | 11 months ago | |
| symfony/dependency-injection | 0.88 | Symfony DependencyInjection standardizes and centralizes object construction with a powerful service container. Define services and parameters, manage autowiring and configuration, and optimize performance through compilation for cleaner, decoupled apps. | 4,169 | 4,201 | 91 | 8M | 0 | 57.3 | 52.9 | MIT | 3 weeks ago | |
| sanmai/di-container | 0.88 | 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 | 736K | 2 | 23.9 | 64.3 | BSD-3-Clause | 1 month ago | |
| yiisoft/files | 0.87 | Yii Files is a PHP 8+ utility package with FileHelper methods for common filesystem tasks: ensure/create directories with permissions, remove or clear directories, filter files via path matching, and other file and directory management helpers. | 37 | 37 | 18 | 57K | 3 | 10.1 | 47.7 | BSD-3-Clause | 7 months ago | |
| aura/di | 0.87 | Aura.Di is a PSR-11 dependency injection container for PHP 8+ with constructor and setter injection, interface and trait awareness, configurable wiring with inheritance, and support for serialization. Installable via Composer and fully documented. | 353 | 357 | 63 | 8K | 2 | 28.5 | 21.9 | MIT | 3 months ago | |
| bnf/di | 0.87 | 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 | — | — | — | |
| avris/container | 0.86 | 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.86 | 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. | 310 | 324 | 60 | 1M | 0 | 3.4 | 50.4 | MIT | — | |
| yiisoft/definitions | 0.85 | Minimalistic definitions container for PHP apps. Build and compose object definitions for DI: map IDs to classes, factories, values and params, with autowiring-friendly configuration. Designed to work smoothly with Yii and other PSR-based projects. | 15 | 15 | 6 | 66K | 4 | 12.6 | 55.5 | BSD-3-Clause | 7 months ago | |
| yiisoft/strings | 0.85 | Yii Strings provides fast, multibyte-safe string utilities for PHP: StringHelper and NumericHelper, Inflector (pluralize, slug), wildcard pattern matching, and optimized combined regex matching with optional memoization. | 49 | 51 | 19 | 110K | 5 | 12.2 | 50.4 | BSD-3-Clause | 7 months ago | |
| yiisoft/html | 0.84 | Tools for dynamic server-side HTML generation: rich set of tag classes, custom tags, widgets (ButtonGroup, CheckboxList, RadioList), automatic HTML-encoding with NoEncode bypass, and an Html helper with static methods to build tags and widgets. | 58 | 58 | 23 | 31K | 6 | 25.8 | 44.8 | BSD-3-Clause | 1 month ago | |
| yiisoft/test-support | 0.83 | Testing utilities for Yii applications: helpers and fixtures to simplify unit and integration tests, isolate dependencies, and improve readability. Provides common test tools you can reuse across packages and projects. | 15 | 15 | 11 | 28K | 3 | 13.8 | 49.3 | BSD-3-Clause | 5 months ago | |
| yiisoft/injector | 0.83 | 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. | 94 | 94 | 17 | 195K | 6 | 12.4 | 50.6 | BSD-3-Clause | 7 months ago | |
| yiisoft/code-style | 0.83 | Coding style and quality tools for PHP projects from Yii. Provides configuration and presets to keep code formatting consistent and enforce standards across your repository, helping teams maintain clean, readable code with automated checks. | 3 | 3 | 2 | 18K | 0 | 11.4 | 55.3 | BSD-3-Clause | 5 months ago | |
| yiisoft/aliases | 0.82 | yiisoft/aliases stores and resolves path aliases (strings starting with @) for filesystem paths or URLs. Define aliases like @root, @vendor, @bin and expand them on demand, supporting nested aliases (e.g., @bin => @vendor/bin) without checking path existence. | 24 | 24 | 10 | 40K | 3 | 10.6 | 47.8 | BSD-3-Clause | 7 months ago | |
| 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. | 868 | 907 | 105 | 2M | 5 | 31.4 | 53.1 | MIT | 4 months ago | |
| yiisoft/translator | 0.81 | Yii Translator provides a clean abstraction for message translation in PHP apps, with support for multiple message categories, locales, and fallback logic. Integrates with Yii components to load, format, and return translated strings consistently across your project. | 26 | 26 | 10 | 33K | 10 | 14.9 | 48.4 | BSD-3-Clause | 7 months ago | |
| yiisoft/friendly-exception | 0.80 | Defines FriendlyExceptionInterface for exceptions that provide a human-friendly name and suggested solution. Lets error handlers detect these exceptions and display clearer, actionable information on error pages. Includes guidance for writing short, markdown-based solutions. | 49 | 49 | 11 | 80K | 1 | 8.8 | 47.0 | BSD-3-Clause | 7 months ago |
How can I help you explore Laravel packages today?