mouf/picotainer
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bnf/di | 0.83 | 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 | — | — | — | |
| illuminate/container | 0.83 | 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.8 | MIT | — | |
| polishsymfonycommunity/symfony-mocker-container | 0.83 | — | 144 | 144 | 10 | 62K | 1 | 2.9 | 36.3 | — | 3 years ago | |
| league/container | 0.82 | 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 | 907 | 105 | 2M | 5 | 33.2 | 54.3 | MIT | 2 months ago | |
| psr-discovery/container-implementations | 0.82 | Auto-discovers an available PSR-11 container at runtime by checking for well-known implementations and returning the first match. Ideal for SDKs/libraries that want PSR-11 support without hard dependencies or user configuration. | 6 | 6 | 1 | 467K | 0 | 1.3 | 55.3 | MIT | 1 year ago | |
| aura/di | 0.82 | 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 | 2 | 30.2 | 22.4 | MIT | 1 month ago | |
| avris/container | 0.81 | 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 | — | — | — | |
| symfony/dependency-injection | 0.81 | 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,166 | 4,198 | 91 | 8M | 0 | 56.0 | 53.1 | MIT | 2 weeks ago | |
| cscfa_tool_division/docker_util | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 0.9 | — | — | 9 years ago | |
| polishsymfonycommunity/symfony2-mocker-extension | 0.81 | Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. | 26 | 26 | 7 | 208 | 0 | 0.6 | 13.0 | MIT | 10 years ago | |
| yiisoft/di | 0.80 | 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 | 33K | 14 | 18.4 | 38.4 | BSD-3-Clause | 6 months ago | |
| container-interop/container-interop | 0.64 | container-interop/container-interop defines a common ContainerInterface (get/has) so PHP dependency injection containers can work together. It standardizes basic container behavior for libraries and apps, improving portability and reducing coupling across different container implementations. | 1,247 | 1,116 | 44 | 409K | 13 | 12.3 | 38.7 | MIT | 9 years ago | |
| http-interop/http-middleware | 0.61 | Interfaces for reusable PSR-7/PSR-15-style HTTP middleware components, enabling interoperability across frameworks and libraries. Define, compose, and share middleware pipelines with minimal coupling between request handlers and implementations. | 71 | 76 | 7 | 13K | 0 | 0.3 | 22.0 | MIT | — | |
| zendframework/zend-servicemanager | 0.60 | Abandoned Zend Framework ServiceManager (moved to laminas/laminas-servicemanager). Implements the Service Locator pattern to create and retrieve services/objects via factories and configuration. Includes docs, tests, and PHPBench benchmarks. | 187 | 192 | 86 | 89K | 13 | 7.5 | 30.8 | BSD-3-Clause | 7 years ago | |
| pmjones/caplet | 0.58 | Caplet is a minimal PSR-11 autowiring dependency injection container for constructor injection and simple factories. Use get() for shared instances, new() for fresh ones, configure scalar parameters via an array, and map interfaces/abstracts via factories. | 8 | 8 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago |
How can I help you explore Laravel packages today?