kanekescom/laravel-helperia
Larablocks Analysis
kanekescom/laravel-helperia works with Laravel 11 and 12 (latest release v2.1.16, Jan 27, 2026).
Laravel 8, 9 and 10 in earlier releases.
Recommendation checks
Use with careUse with care: meets 1 of 4 checks.
- Latest release doesn't support Laravel 13, the current version
- Released in the last 12 months (Jan 27, 2026)
- 29 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Maintained- Last stable release: Jan 27, 2026.
- 17 releases in the last 12 months.
- First released: Sep 24, 2023.
- Monthly downloads: 29.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require kanekescom/laravel-helperia |
|
| Latest Version: | v2.1.16 |
| PHP: | ^8.3 |
| Laravel: | 11 · 12 |
| Older releases: | 8 · 9 · 10 |
| License: | MIT |
| Last Updated: | Aug 22, 2026 |
| Links: | GitHub · Packagist |
Laravel Helperia
Laravel helper package for speeding up application development.
Support the Project
If you find this package helpful, consider supporting its development:
Installation
composer require kanekescom/laravel-helperia
Usage
Helper Functions
Reflection Helpers
Get method names from a class:
// Get all public methods (excluding constructor, destructor, internal)
method_public(MyClass::class); // Collection of method names
// Get all protected methods
method_protected(MyClass::class);
// Get all private methods
method_private(MyClass::class);
// Get all methods (public, protected, private)
method_all(MyClass::class);
// Also works with object instances
$obj = new MyClass();
method_public($obj); // Same result as using class name
Date Helpers
Convert and parse date formats:
// Convert date from one format to another
convert_date_format('01-01-2024', 'd-m-Y', 'Y-m-d'); // "2024-01-01"
convert_date_format('01-01-2024 10:30:00', 'd-m-Y H:i:s', 'Y-m-d H:i:s');
// Parse date string to specified format
parse_date_format('2024-01-01', 'd M Y'); // "01 Jan 2024"
parse_date_format('2024-01-01 10:30:00', 'd M Y H:i:s');
// With default value for invalid/null input
convert_date_format(null, 'd-m-Y', 'Y-m-d', 'N/A'); // "N/A"
convert_date_format('invalid-date', 'd-m-Y', 'Y-m-d', 'fallback'); // "fallback"
parse_date_format('not-a-date', 'Y-m-d', 'default'); // "default"
Support Classes
ClassExtender
A base class for wrapping other classes and forwarding method calls:
use Kanekescom\Helperia\Support\ClassExtender;
class MyWrapper extends ClassExtender
{
public function __construct()
{
$this->class = new SomeOtherClass();
}
}
$wrapper = new MyWrapper();
$wrapper->someMethod(); // Calls SomeOtherClass::someMethod()
HasMethodCaller Trait
Trait for forwarding method calls to a wrapped class instance:
use Kanekescom\Helperia\Traits\HasMethodCaller;
class MyClass
{
use HasMethodCaller;
protected $class;
public function __construct($wrappedClass)
{
$this->class = $wrappedClass;
}
}
// Usage
$wrapper = new MyClass(new SomeService());
$wrapper->serviceMethod(); // Forwards to SomeService::serviceMethod()
// Static method calls are also supported
MyClass::staticMethod(); // Forwards static calls
Note: If a method doesn't exist on either the wrapper or wrapped class, a
BadMethodCallExceptionwill be thrown.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.1.16 | ^8.3 | ^11.0|| | MIT | |
| v2.1.15 | ^8.3 | ^11.0|| | MIT | |
| v2.1.14 | ^8.3 | ^11.0|| | MIT | |
| v2.1.13 | ^8.3 | ^11.0|| | MIT | |
| v2.1.12 | ^8.3 | ^11.0|| | MIT | |
| v2.1.11 | ^8.3 | ^11.0|| | MIT | |
| v2.1.10 | ^8.3 | ^11.0|| | MIT | |
| v2.1.9 | ^8.3 | ^11.0|| | MIT | |
| v2.1.8 | ^8.3 | ^11.0|| | MIT | |
| v2.1.7 | ^8.3 | ^11.0|| | MIT | |
| v2.1.6 | ^8.3 | ^11.0|| | MIT | |
| v2.1.5 | ^8.3 | ^11.0|| | MIT | |
| v2.1.4 | ^8.3 | ^11.0|| | MIT | |
| v2.1.3 | ^8.3 | ^11.0|| | MIT | |
| v2.1.2 | ^8.3 | ^11.0|| | MIT | |
| v2.1.1 | ^8.3 | ^11.0|| | MIT | |
| v2.1 | ^8.3 | ^11.0|| | MIT | |
| v2.0.11 | ^8.1 | ^10.0| | MIT | |
| v2.0.10 | ^8.1 | ^10.0| | MIT | |
| v2.0.9 | ^8.1 | ^10.0 | MIT | |
| v2.0.8 | ^8.1 | ^10.0 | MIT | |
| v2.0.7 | ^8.1 | ^10.0 | MIT | |
| v2.0.6 | ^8.1 | ^10.0 | MIT | |
| v2.0.5 | ^8.1 | ^10.0 | MIT | |
| v2.0.4 | ^8.1 | ^10.0 | MIT | |
| v2.0.3 | ^8.1 | ^10.0 | MIT | |
| v2.0.2 | ^8.1 | ^10.0 | MIT | |
| v2.0.1 | ^8.1 | ^10.0 | MIT | |
| v2.0 | ^8.1 | ^10.0 | MIT | |
| v1.0.4 | ^8.0| | MIT |
Showing the latest 30 of 34. See every release on Packagist