rmunate/laravel_helpers
| Install | |
|---|---|
composer require rmunate/laravel_helpers |
|
| Latest Version: | v3.1.0 |
| PHP: | ^8.0 |
| Laravel: | 11 · 12 |
| Older releases: | 8 · 9 · 10 |
| License: | MIT |
| Last Updated: | Jun 10, 2025 |
| Links: | GitHub · Packagist |
Laravel Helpers
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.
License
Related Packages
PHP Class that streamlines usages of static method helpers without needing to lo...
Provides backwards compatibility for helpers in the latest Laravel release.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v3.1.0 | ^8.0 | ^11.0| | MIT | |
| v3.0.1 | ^8.0 | ^11.0 | MIT | |
| v3.0.0 | ^8.0 | ^11.0 | MIT | |
| v2.4.1 | ^7.4| | ^8.0| | MIT | |
| v1.4.1 | ^7.4| | ^8.0| | MIT |