php-di/invoker
Lightweight PHP library to call any callable with automatic dependency injection. Resolves function and method parameters by name and type-hints, integrates with PHP-DI, and supports default values for flexible invocations in frameworks, controllers, and CLI tools.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symplify/autowire-array-parameter | 0.80 | Automatically inject array parameters into PHP services with minimal configuration. Symplify Autowire Array Parameter resolves array constructor arguments from container config, reducing boilerplate and making service wiring cleaner in Symfony/Laravel-style DI setups. | 60 | 62 | 2 | 57K | 0 | 0.2 | 28.9 | MIT | — | |
| yiisoft/injector | 0.80 | 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 | |
| endroid/quality | 0.80 | Quality-related helper package by Endroid for PHP/Laravel apps, providing small utilities for enforcing or improving code/data quality in your project. Suitable as a lightweight dependency when you need simple quality checks or supporting components. | 3 | 3 | 1 | 76 | 0 | 0.0 | 18.0 | — | — | |
| php-di/php-di | 0.80 | PHP-DI is a practical, powerful, framework-agnostic dependency injection container for PHP. It helps manage services and wiring with autowiring and flexible configuration, making applications easier to build, test, and maintain across any framework. | 2,773 | 2,851 | 323 | 2M | 56 | 53.0 | 62.3 | MIT | 9 months ago | |
| dantleech/invoke | 0.79 | Emulate named arguments in PHP: instantiate classes or call methods by mapping associative array keys to parameter names. Validates required/missing/extra keys and type hints, throwing clear exceptions. Useful for deserialization and config loading. | 5 | 5 | 2 | 27K | 0 | 0.2 | 50.4 | — | — | |
| cocur/vale | 0.79 | cocur/vale is a lightweight PHP value validation library. Define reusable rules to validate strings, numbers, arrays, and objects, and get clear, consistent results without pulling in a full framework—handy for DTOs, APIs, and input sanitization. | 14 | 14 | 1 | 3K | 0 | 0.7 | 31.7 | MIT | 11 years ago |
How can I help you explore Laravel packages today?