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 | 16K | 3 | 6.0 | 43.0 | GPL-2.0 | 10 months 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 | 556K | 2 | 24.5 | 65.3 | BSD-3-Clause | 1 week ago | |
| league/container | 0.87 | 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 | |
| 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. | 0 | 37 | — | 37K | — | 12.3 | 45.3 | — | — | |
| 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. | 352 | 356 | 63 | 8K | 1 | 31.0 | 21.3 | MIT | 1 month 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 | — | — | — | |
| symfony/dependency-injection | 0.86 | 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.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. | 311 | 324 | 59 | 1M | 0 | 3.3 | 49.9 | 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. | 0 | 15 | — | 30K | — | 14.8 | 51.5 | — | — | |
| 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 | 63K | 5 | 14.8 | 48.2 | BSD-3-Clause | 6 months ago | |
| yiisoft/html | 0.84 | Yii HTML is a PHP library for safe, dynamic server-side HTML generation. It provides classes for common HTML tags, a CustomTag builder, widgets like ButtonGroup/CheckboxList/RadioList, automatic content encoding with NoEncode, and an Html helper API. | 58 | 58 | 23 | 21K | 7 | 27.8 | 43.1 | BSD-3-Clause | 2 weeks 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 | 15K | 3 | 16.4 | 46.1 | BSD-3-Clause | 4 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 | 201K | 6 | 14.3 | 51.6 | BSD-3-Clause | 6 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 | 5K | 0 | 13.3 | 47.5 | BSD-3-Clause | 4 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. | 0 | 24 | — | 27K | — | 12.6 | 46.2 | — | — | |
| 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 | 23K | 10 | 17.4 | 46.7 | BSD-3-Clause | 6 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 | 57K | 1 | 11.3 | 45.8 | BSD-3-Clause | 6 months ago |
How can I help you explore Laravel packages today?