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 | 38.7 | — | 3 years ago | |
| symfony/dependency-injection | 0.82 | The Symfony DependencyInjection component standardizes and centralizes object construction in your application, offering a flexible service container with autowiring, configuration, and compilation support. | 4,167 | 4,200 | 92 | 13M | 0 | 58.4 | 56.5 | MIT | 1 week 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 | 238 | 49 | 39K | 14 | 10.7 | 36.7 | BSD-3-Clause | 11 months ago | |
| c975l/site-bundle | 0.80 | — | 1 | 1 | 0 | 2K | 1 | 0.1 | 39.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 | — | 9 | — | 0.0 | 13.8 | — | — | |
| 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 | 370 | 0 | 0.0 | 35.5 | — | — | |
| 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. | 2 | 2 | 0 | 0 | 0 | 6.0 | — | MIT | 1 year 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 | 1K | 0 | 1.0 | 24.8 | — | 9 years ago | |
| league/container | 0.78 | League/Container is a fast, lightweight, PSR-11 compliant dependency injection container for PHP. It offers constructor autowiring, service providers, inflectors, and lazy loading out of the box, requires no configuration, and supports PHP 8.3, 8.4, and 8.5. | 864 | 906 | 104 | 3M | 5 | 25.7 | 53.6 | MIT | 7 months ago | |
| chillerlan/php-settings-container | 0.77 | A lightweight PHP settings container that decouples configuration logic from your application. It is not a DI container, offering typed settings objects, property hooks for PHP before 8.4, and straightforward access, merging, and serialization. | 37 | 38 | 3 | 6M | 0 | 15.3 | 59.2 | MIT | 7 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 | 11K | 3 | 4.1 | 41.7 | MIT | 10 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,458 | 2,474 | 149 | 13M | 0 | 25.8 | 51.7 | MIT | 1 year ago | |
| ergebnis/classy | 0.53 | This Composer package provides collectors for finding classy constructs, including classes, enums, interfaces, and traits, in PHP source code. It offers token-, file-, SplFileInfo-, and Finder-based collectors to gather these declarations for analysis or tooling. | 39 | 39 | 4 | 60K | 0 | 24.7 | 50.7 | MIT | 1 month ago | |
| mnapoli/silly | 0.52 | Silly is a micro-framework for building PHP command-line applications on top of Symfony Console. Commands are defined with simple callables and signatures like 'greet [name] [--yell]', while dependency injection, console helpers, and PHP-DI or Pimple integration are included. | 933 | 938 | 52 | 120K | 4 | 27.4 | 33.2 | MIT | 4 months ago | |
| sanmai/di-container | 0.51 | A straightforward PSR-11 dependency injection container with zero-configuration autowiring. It resolves constructor dependencies via reflection, reuses created objects, maps interfaces to concrete implementations, and supports builder objects for complex construction. | 7 | 7 | 4 | 1M | 0 | 24.2 | 63.6 | BSD-3-Clause | 2 months ago | |
| liquid/liquid | 0.51 | Liquid is a PHP port of the Ruby Liquid template engine. It offers readable, secure syntax with no embedded PHP, separate compiling and rendering stages, and easy extension with custom tags and filters. Markup compatible with Ruby Liquid. | 184 | 186 | 64 | 239K | 35 | 43.2 | 65.7 | MIT | 1 week 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 | 0 | 0 | 0.0 | — | MIT | — |
How can I help you explore Laravel packages today?