l0n3ly/laravel-dynamic-helpers
moneyHelper(), permissionHelper()) without polluting controllers or services. Supports modular architecture by organizing helpers in nested directories (e.g., Store/TenantHelper).permissionHelper()), formatting (moneyHelper()), or API wrappers (stripeHelper()).Admin/User/RoleHelper) with camelCase global functions.<5 total)—manual registration may suffice.eval() for global functions) for security/auditability concerns."This package cuts helper development time by 80% by automating scaffolding, registration, and IDE support. For every utility function we add—like moneyHelper() or permissionHelper()—we eliminate manual boilerplate, reduce bugs, and improve developer productivity. It’s a low-risk, high-reward investment that aligns with our Laravel 13 upgrade and Boost AI initiatives."
Key Outcomes:
"Imagine writing php artisan make:helper Money and instantly getting:
moneyHelper() with autocompletion.Store/TenantHelper → storeTenantHelper()).No more hunting for use statements or IDE hints. This is Laravel’s make:command for helpers—but smarter."
Why It’s Better Than Alternatives:
| Approach | Pros | Cons | This Package’s Edge |
|---|---|---|---|
| Manual classes | Explicit | Boilerplate, no IDE support | Auto-generated, IDE-ready |
| Global functions | Fast access | Pollutes namespace | Namespaced, type-safe |
| Service containers | Dependency injection | Overhead for simple helpers | Lightweight, global or DI-friendly |
| Static classes | Simple | Violates SOLID | Encapsulated, testable |
Migration Path:
moneyHelper()).Admin/, Store/).Risk Mitigation:
app/Helpers/ and uninstall the package to revert.How can I help you explore Laravel packages today?