PHPackages                             kanekescom/laravel-helperia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kanekescom/laravel-helperia

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kanekescom/laravel-helperia
===========================

Laravel helper package for speeding up application development

v2.1.16(3mo ago)03.6k2[2 PRs](https://github.com/kanekescom/laravel-helperia/pulls)5MITPHPPHP ^8.3CI passing

Since Sep 24Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/kanekescom/laravel-helperia)[ Packagist](https://packagist.org/packages/kanekescom/laravel-helperia)[ Docs](https://github.com/kanekescom/laravel-helperia)[ Fund](https://s.id/hadibmac)[ GitHub Sponsors](https://github.com/sponsors/achmadhadikurnia)[ RSS](/packages/kanekescom-laravel-helperia/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (37)Used By (5)

Laravel Helperia
================

[](#laravel-helperia)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0524a7787406ea3646cd08b4a9aeef78d794c36b6bb56d29db4efab60ed5a6f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616e656b6573636f6d2f6c61726176656c2d68656c70657269612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kanekescom/laravel-helperia)[![GitHub Tests Action Status](https://camo.githubusercontent.com/29443bb3513af8685fd7258ee940a5c90eea21681482da4c5dc75befec61b0bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b616e656b6573636f6d2f6c61726176656c2d68656c70657269612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kanekescom/laravel-helperia/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5429d9ccee480294893a4651e21dcf46d0a08f655bd7f093d2890e98566019c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b616e656b6573636f6d2f6c61726176656c2d68656c70657269612f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kanekescom/laravel-helperia/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fc914b875ebbcff620054f012ab5c186920ff2dccadfab6f28d78a01e13a677f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616e656b6573636f6d2f6c61726176656c2d68656c70657269612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kanekescom/laravel-helperia)

Laravel helper package for speeding up application development.

Support the Project
-------------------

[](#support-the-project)

If you find this package helpful, consider supporting its development:

[![GitHub Sponsors](https://camo.githubusercontent.com/9c923c0024fc20fbd1ea153035ab2b5bb25cf1423c5aa07c35fd3e16b227a307/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769744875622d6561346161613f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/sponsors/achmadhadikurnia)[![Ko-fi](https://camo.githubusercontent.com/a3163b10b1c9e62adcfcde67e844085904b76ce9b1e27524f578dda704560fdb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b6f2d2d66692d537570706f72742d6666356535623f7374796c653d666c61742d737175617265266c6f676f3d6b6f2d6669)](https://ko-fi.com/achmadhadikurnia)[![Buy Me a Coffee](https://camo.githubusercontent.com/fa9654a385af27e40331b65af9fbf8cb38505b07e0fe5a25c810dad403eb51d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532304d6525323061253230436f666665652d537570706f72742d6666646430303f7374796c653d666c61742d737175617265266c6f676f3d6275792d6d652d612d636f66666565266c6f676f436f6c6f723d626c61636b)](https://s.id/hadibmac)[![Patreon](https://camo.githubusercontent.com/841948dfde38e708c4dc821f97caec8840b6a64cdea5a0a587108558820ef926/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617472656f6e2d537570706f72742d6639363835343f7374796c653d666c61742d737175617265266c6f676f3d70617472656f6e)](https://s.id/hadipatreon)[![Saweria](https://camo.githubusercontent.com/ddf74e280fdfb9f4e79b0550c2a91193b9e6724cd8558e94db681d2c89bb8ff5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536177657269612d537570706f72742d6635613632333f7374796c653d666c61742d737175617265)](https://saweria.co/achmadhadikurnia)

Installation
------------

[](#installation)

```
composer require kanekescom/laravel-helperia
```

Usage
-----

[](#usage)

### Helper Functions

[](#helper-functions)

#### Reflection Helpers

[](#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

[](#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

[](#support-classes)

#### ClassExtender

[](#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

[](#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 `BadMethodCallException` will be thrown.

---

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Achmad Hadi Kurnia](https://github.com/achmadhadikurnia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Recently: every ~5 days

Total

34

Last Release

106d ago

Major Versions

v1.0.4 → v2.02023-10-14

PHP version history (2 changes)v2.0PHP ^8.1

v2.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/61120fbce750b7e0faa02a57002c4f0a0b378efc26b1b1f3bc19257f29e22fbe?d=identicon)[kanekescom](/maintainers/kanekescom)

---

Top Contributors

[![achmadhadikurnia](https://avatars.githubusercontent.com/u/4408971?v=4)](https://github.com/achmadhadikurnia "achmadhadikurnia (118 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")

---

Tags

helperhelperiakanekescomlaravellaravel-helperiaphplaravelhelperkanekescomHelperialaravel-helperia

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kanekescom-laravel-helperia/health.svg)

```
[![Health](https://phpackages.com/badges/kanekescom-laravel-helperia/health.svg)](https://phpackages.com/packages/kanekescom-laravel-helperia)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
