rmunate / laravel_helpers
Generate application helpers and extend Laravel's native helper classes.
Requires
- php: ^8.2
- ext-ctype: *
- ext-tokenizer: *
- illuminate/console: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
Requires (Dev)
- laravel/framework: ^12.0 || ^13.0
- phpunit/phpunit: ^11.5.50
Suggests
- ext-intl: Required by Laravel for locale-aware Number helpers.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-18 20:24:04 UTC
README
Generate helper classes and global functions inside your Laravel app. The generated Arr, Date, File, Number, and Str classes forward calls to Laravel, so you can add your own methods without modifying the framework.
Install 4.0
| Laravel | PHP versions supported by Laravel |
|---|---|
| 13.x | 8.3–8.5 |
| 12.x | 8.2–8.5 |
Install on a supported Laravel application:
composer require "rmunate/laravel_helpers:^4.0"
Laravel discovers the package automatically. The intl extension is needed for localized number formatting.
Quick start
php artisan helper:init # Generate Arr, Date, File, Number, and Str php artisan helper:create Html # Generate a custom class php artisan helper:functions # Create an optional global functions file
In a standard Laravel app, files are created in app/Helpers. Running helper:init again fills in missing files without replacing your changes.
use App\Helpers\Str; Str::slug('Laravel Helpers'); // 'laravel-helpers' Str::isDigit('42'); // true
See the full documentation, 4.0 release and migration notes, and contributor guide.