l0n3ly/laravel-dynamic-helpers
Store/ProductHelper, Auth/RoleHelper) without bloating core logic.moneyHelper()->format() vs. ad-hoc static classes).permissionHelper() in Blade templates).invoiceHelper()->calculateTax()).dateHelper()->formatForDisplay()) for Blade templates.stripeHelper()->createCharge()) with consistent error handling.Adopt if:
formatMoney(), moneyFormat()).Look elsewhere if:
strtolower() replacements) → Use native PHP or Laravel helpers.For Executives:
"This package cuts helper development time by 70% by automating scaffolding, registration, and IDE integration. For example, a MoneyHelper can be created in seconds with php artisan make:helper MoneyHelper, then used anywhere as moneyHelper()->format(1000). It also enforces consistency—no more userHelper() vs. userService() confusion—and improves maintainability by organizing helpers by domain (e.g., Store/ProductHelper). The singleton caching ensures zero performance penalty for frequent calls, like in Blade templates. With Laravel 13 support and MIT license, it’s a low-risk, high-reward tool to standardize our codebase."
For Engineers: *"This replaces manual helper registration with a zero-config system:
php artisan make:helper PermissionHelper → app/Helpers/PermissionHelper.php.permissionHelper()->can('edit') (global function) or PermissionHelper::check('edit') (static).Store/ProductHelper become storeProductHelper().How can I help you explore Laravel packages today?