dantleech/invoke
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| aura/di | 0.81 | Aura.Di is a PSR-11 dependency injection container for PHP 8+, supporting serializable containers, constructor and setter injection, interface/trait awareness, and configuration inheritance. Lightweight, standards-friendly, and flexible for complex apps. | 352 | 356 | 63 | 5K | 1 | 32.8 | 18.8 | MIT | 1 year ago | |
| yiisoft/injector | 0.80 | yiisoft/injector is a lightweight PHP dependency injection container for building objects and wiring dependencies via constructor, method, and property injection. Supports factories, config-based definitions, and PSR-friendly integration for Yii apps and beyond. | 94 | 94 | 17 | 234K | 6 | 22.7 | 2.2 | BSD-3-Clause | 4 months ago | |
| sanmai/di-container | 0.79 | 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 | 2 | 743K | 3 | 24.9 | 66.4 | BSD-3-Clause | 2 months ago | |
| php-di/invoker | 0.78 | 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. | 268 | 272 | 20 | 2M | 2 | 29.2 | 62.5 | MIT | 7 months ago | |
| symplify/autowire-array-parameter | 0.77 | 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 | 38K | 0 | 0.2 | 27.2 | MIT | — | |
| nette/di | 0.77 | Nette DI is a fast, secure dependency injection container for PHP. It compiles configuration into optimized PHP for performance, supports autowiring, service factories, extensions, and strong type safety. Ideal for Nette apps or standalone use. | 920 | 926 | 74 | 361K | 16 | 42.3 | 56.7 | NOASSERTION | 5 months ago | |
| opis/json-schema | 0.75 | Opis JSON Schema validates JSON documents against JSON Schema drafts 2020-12 to 06. Includes custom errors, PHP filters, schema reuse/mappers, slots, pointers, URI templates, $data, casting, and custom formats/media types. | 642 | 647 | 64 | 2M | 9 | 33.3 | 60.1 | Apache-2.0 | 5 months ago | |
| php-di/php-di | 0.75 | 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,779 | 2,857 | 324 | 2M | 56 | 69.2 | 74.5 | MIT | 7 months ago | |
| nette/schema | 0.74 | nette/schema is a small PHP library for validating and normalizing structured data. Define schemas for arrays, configuration, and user input with type checks, defaults, required fields, ranges, and clear error messages—ideal for safe config loading. | 1,003 | 1,008 | 29 | 10M | 8 | 33.0 | 68.1 | NOASSERTION | 1 month ago | |
| danog/advanced-json-rpc | 0.74 | PHP JSON-RPC 2.0 dispatcher with request/response helpers. Decodes JSON-RPC calls and invokes target methods, coercing params via type hints and @param docs. Supports nested targets (configurable delimiter like "->" or "/"). | 13 | 13 | 2 | 772K | 0 | 0.4 | 55.6 | ISC | — | |
| nette/utils | 0.74 | Handy PHP utility classes from Nette: strings, arrays, JSON, validators, safe HTML, and more. Lightweight, well-tested helpers that complement any framework or plain PHP app, making common tasks cleaner, safer, and faster to write. | 2,139 | 2,186 | 152 | 10M | 10 | 48.1 | 67.9 | NOASSERTION | 1 month ago | |
| myclabs/deep-copy | 0.63 | DeepCopy creates safe deep clones of PHP objects, recursively copying referenced objects while preserving the original object graph. It handles cyclic references to avoid infinite loops, and supports customization via matchers and filters for specific properties and types. | 8,887 | 8,916 | 107 | 13M | 17 | 62.5 | 59.3 | MIT | 8 months ago | |
| spatie/once | 0.62 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,431 | 1,437 | 61 | 270K | 0 | 34.7 | 37.1 | MIT | 4 months ago | |
| reecem/mocker | 0.61 | A lightweight Laravel-friendly mocking helper for PHP tests. Quickly define and swap mocks, set expectations, and control return values to simplify unit and feature testing. Designed to reduce boilerplate and keep test setup clean and readable. | 7 | 7 | 16 | 2K | 2 | 24.3 | 40.2 | MIT | 3 years ago | |
| pedrotroller/php-cs-custom-fixer | 0.61 | Custom fixers for PHP-CS-Fixer. Adds rules like ordering Behat context step definition methods by annotation and method name, with options for detecting context classes. Install via Composer and register the fixers in your .php_cs(.dist) config. | 81 | 83 | 10 | 17K | 4 | 32.2 | 45.2 | — | 6 months ago | |
| roave/better-reflection | 0.61 | Better Reflection is an enhanced PHP reflection API for static analysis. Reflect on classes without loading them, from PHP code strings, and on closures; extract method/function AST and type declarations. Feature-rich but slower than native reflection (not for runtime). | 1,237 | 1,241 | 138 | 230K | 14 | 44.0 | 43.1 | MIT | 2 days ago | |
| spatie/data-transfer-object | 0.61 | PHP 8+ data transfer objects with “batteries included”: map and cast input arrays into typed DTOs, validate via attributes, and handle nested objects/collections. Note: package is deprecated; consider spatie/laravel-data or cuyz/valinor. | 2,233 | 2,192 | 190 | 543K | 0 | 22.9 | 38.8 | MIT | 3 years ago | |
| php-mock/php-mock-mockery | 0.61 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 64K | 2 | 21.9 | 52.1 | WTFPL | 1 year ago | |
| league/tactician | 0.61 | Tactician is a small, pluggable PHP command bus. Route commands to handlers and extend behavior via middleware and plugins (logging, containers, Doctrine transactions, queuing, events, locking). Install with Composer and integrate with your framework of choice. | 864 | 872 | 86 | 187K | 2 | 31.0 | 38.4 | MIT | 3 months ago | |
| spatie/value-object | 0.61 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,233 | 2,179 | 190 | 0 | 0 | 22.9 | — | MIT | 3 years ago |
How can I help you explore Laravel packages today?