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 | 3K | 0 | 1.8 | 40.3 | — | 2 years ago | |
| c975l/site-bundle | 0.80 | — | 1 | 1 | 0 | 60 | 1 | 0.1 | 20.6 | 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 | 2K | 0 | 0.0 | 44.8 | — | — | |
| 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 | |
| dragon-code/support | 0.79 | Dragon Code Support is a lightweight helper toolkit for PHP/Laravel projects, providing a growing collection of utilities and facades to speed up development. Easy to extend—add new methods or classes with tests following the package structure. | 23 | 23 | 5 | 443K | 0 | 26.8 | 63.5 | MIT | 2 months 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 | 12.9 | — | MIT | 7 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 | 466 | 0 | 1.0 | 19.9 | — | 9 years 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. | 34 | 35 | 4 | 2M | 0 | 23.5 | 63.2 | MIT | 2 months ago | |
| league/container | 0.76 | 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/di | 0.75 | 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.0 | 37.3 | BSD-3-Clause | 6 months ago | |
| nayjest/manipulator | 0.73 | 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 | 5K | 3 | 4.1 | 37.0 | MIT | 9 years ago | |
| da/di-bundle | 0.55 | — | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| pimple/pimple | 0.54 | 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 | — | |
| dawen/api-doc-property-bundle | 0.54 | — | 1 | 2 | 1 | 0 | 0 | 0.0 | — | MIT | — | |
| ais/prodibundle | 0.54 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — |
How can I help you explore Laravel packages today?