mrclay/props-dic
A lightweight PHP DI container that exposes services as typed properties and factory methods ($c->foo, $c->new_foo()), letting you add @property/@method PHPDoc for IDE autocomplete and static analysis. Supports lazy resolution, caching, and factories.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| hyperf/pimple | 0.82 | hyperf/pimple 是基于 pimple/pimple 的轻量级 PSR-11 容器组件,提供简单的 ContainerFactory 创建容器与 Provider 注册机制,帮助在非 Hyperf 框架中低成本接入 Hyperf 组件(如 translation/config),便于集成与复用。 | 3 | 3 | 0 | 2K | 0 | 1.8 | 37.1 | — | 3 years ago | |
| symfony/dependency-injection | 0.82 | 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 | |
| yiisoft/di | 0.81 | 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 | 49 | 54K | 14 | 16.6 | 41.0 | BSD-3-Clause | 7 months ago | |
| c975l/site-bundle | 0.80 | — | 1 | 1 | 0 | 87 | 1 | 0.1 | 22.7 | MIT | — | |
| 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 | — | — | — | |
| draw/contracts | 0.80 | Lightweight PHP contracts for Draw packages. Provides shared interfaces and abstractions to standardize implementations across components, improving interoperability, testing, and decoupling in Laravel or framework-agnostic projects. | 0 | 0 | 0 | 1K | 0 | 0.0 | 42.7 | — | — | |
| laravel-admin/site | 0.79 | Laravel package that adds a “site” singleton to the service container for storing app-wide data (supports dot notation). Includes defaults via config, can populate values from a model, and shares the container with all views as $site. | 1 | 1 | 0 | 0 | 0 | 0.6 | — | — | 9 years ago | |
| codememory/entity-response-control | 0.79 | Define response prototypes to shape arrays from Doctrine entities using PHP attributes. Build API-friendly payloads with custom formatting, naming strategies, and decorators, including extra per-object data from additional queries. | 1 | 1 | 0 | 0 | 0 | 10.9 | — | MIT | 9 months ago | |
| mouf/picotainer | 0.79 | Picotainer is a tiny (24 lines) dependency injection container for PHP, inspired by Pimple and compatible with container-interop/PSR-11. Define entries as closures, support delegate lookup, and retrieve services with a minimalist API. | 16 | 16 | 6 | 739 | 0 | 1.0 | 22.8 | — | 9 years ago | |
| league/container | 0.78 | 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 | |
| chillerlan/php-settings-container | 0.77 | Lightweight PHP settings container to keep configuration logic out of your app (not a DI container). Provides a SettingsContainerInterface with “property hook”-style access for PHP < 8.4, plus sane defaults for organizing and retrieving settings objects. | 35 | 35 | 4 | 3M | 0 | 20.6 | 61.8 | MIT | 4 months ago | |
| nayjest/manipulator | 0.57 | Fast, lightweight PHP object manipulation helpers—like symfony/property-access but simpler (~300 LOC) and no reflection. Instantiate classes, set public properties, and assign values via setters from arrays (snake/camel case), with optional property creation. | 10 | 10 | 1 | 6K | 3 | 4.1 | 37.7 | MIT | 9 years ago | |
| react/promise | 0.53 | Lightweight Promises/A implementation for PHP. Use Deferred/Promise to resolve or reject async results, chain with then/catch/finally, cancel when supported, and combine promises with helpers like resolve/reject, all, race, and any. | 2,456 | 2,475 | 149 | 9M | 0 | 27.3 | 49.8 | MIT | 11 months ago | |
| ergebnis/classy | 0.53 | ergebnis/classy adds convenient helpers for working with PHP classes and reflection. Generate class names, namespaces, and short names, and inspect class metadata in a clean, test-friendly way—useful for tooling, libraries, and code generation. | 39 | 39 | 4 | 61K | 0 | 15.3 | 47.4 | MIT | 6 months ago | |
| mnapoli/silly | 0.52 | Silly is a lightweight CLI micro-framework built on Symfony Console. Define commands with simple signatures and PHP callables, get options/arguments parsing, helpers, and DI integration (PHP-DI or Pimple) while staying compatible with Symfony Console apps. | 934 | 939 | 52 | 85K | 4 | 33.9 | 32.5 | MIT | 3 weeks ago | |
| sanmai/di-container | 0.51 | 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 | |
| liquid/liquid | 0.51 | Liquid is a secure, Ruby-compatible template engine for PHP. It separates parsing and rendering for performance, uses readable syntax for any document type, prevents PHP code execution, and is easy to extend with custom tags and filters. | 183 | 185 | 64 | 142K | 35 | 41.5 | 61.1 | MIT | 1 month ago | |
| julio/capyrel | 0.51 | Capyrel is intelligent Laravel scaffolding: it reads your database schema and auto-generates Eloquent relationships plus models, controllers, Blade views, API resources, form requests, and Pest tests. Includes model mapping, safe migration scanning, and live model updates. | 0 | 0 | 0 | 2 | 0 | 0.0 | 6.6 | MIT | — |
How can I help you explore Laravel packages today?