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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 3 | 556K | 2 | 24.5 | 65.3 | BSD-3-Clause | 1 week 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 | 57K | 0 | 0.2 | 28.9 | MIT | — | |
| 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. | 649 | 654 | 67 | 2M | 12 | 21.5 | 55.8 | Apache-2.0 | 7 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,773 | 2,851 | 322 | 2M | 56 | 53.0 | 62.3 | MIT | 9 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,009 | 1,014 | 28 | 10M | 8 | 27.2 | 64.6 | NOASSERTION | 3 months 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 | 933K | 0 | 0.5 | 56.0 | ISC | — | |
| doctrine/instantiator | 0.72 | Lightweight PHP library to instantiate objects without calling their constructors. Useful for hydrators, serializers, proxies, and testing/mocking. Part of the Doctrine ecosystem; creates instances via reflection while avoiding side effects and required constructor args. | 11,003 | 11,036 | 60 | 9M | 1 | 43.5 | 44.3 | MIT | 5 months ago | |
| spatie/invade | 0.70 | Access and manipulate private/protected object and static properties, and call private methods in PHP using a simple invade() helper. Handy for testing, debugging, and working around encapsulation when needed, without verbose reflection code. | 340 | 342 | 18 | 2M | 0 | 5.2 | 53.1 | MIT | 2 years ago | |
| da/di-bundle | 0.59 | — | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| spatie/macroable | 0.59 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 729 | 736 | 26 | 1M | 0 | 19.0 | 50.8 | MIT | 4 months ago | |
| elao/parameterizer | 0.58 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | — | 11 years ago | |
| aimeos/macro | 0.57 | aimeos/macro is a lightweight PHP macro/extension library that lets you add methods at runtime and extend objects and classes without inheritance. Handy for creating fluent APIs, plugin-style features, and flexible customization in Laravel or any PHP project. | 2,397 | 2,381 | 1 | 4K | 0 | 12.0 | 5.6 | MIT | — | |
| dinecat/smart-routing-bundle | 0.57 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| spatie/once | 0.56 | 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,438 | 1,444 | 61 | 249K | 0 | 24.1 | 33.5 | MIT | 6 months ago | |
| devhelp/flow-control-bundle | 0.56 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| hans-thomas/sphinx | 0.56 | — | 5 | 5 | 0 | 20 | 1 | 6.1 | 9.0 | — | 10 months ago | |
| illuminate/auth | 0.55 | Laravel’s authentication component providing guards, user providers, password hashing, “remember me” services, and authorization gates. Powers login/session auth and integrates with HTTP middleware and the framework’s auth configuration. | 93 | 104 | 42 | 268K | 0 | 1.7 | 48.0 | MIT | — | |
| cethyworks/invitation-bundle | 0.55 | — | 2 | 2 | 0 | 0 | 0 | 0.2 | — | — | 8 years ago | |
| eventsauce/id-encoding | 0.55 | — | 3 | 3 | 0 | 27K | 0 | 0.0 | 52.6 | — | — | |
| nayjest/builder | 0.55 | Fluent builder library for PHP that helps assemble complex objects step by step. Chainable API supports configurable construction flows and optional validation to keep setup readable and maintainable, useful for DTOs, services, and more. | 14 | 14 | 0 | 1K | 4 | 3.2 | 27.1 | MIT | 10 years ago |
How can I help you explore Laravel packages today?