PHPackages                             webklex/helpers - 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. webklex/helpers

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

webklex/helpers
===============

Basic and flexible Laravel helpers

1.0.2(9y ago)11.4k1MITPHPPHP &gt;=5.5.9

Since Sep 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Webklex/helpers)[ Packagist](https://packagist.org/packages/webklex/helpers)[ Docs](https://github.com/webklex/helpers)[ RSS](/packages/webklex-helpers/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (1)

Laravel Helpers
===============

[](#laravel-helpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b4519253e0f708783ab4831493bec607abd895c0b9ded78cc3afb9e524749823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626b6c65782f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webklex/helpers)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9fdce98cea9bd2e063e400055c6f7b87495b13d37594e3f6fce4dfd0ba5ff320/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5765626b6c65782f68656c706572732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/webklex/helpers)[![Total Downloads](https://camo.githubusercontent.com/9f814c55c8c8bbd2492c92fa77023861e8d8aff7598b9927b21a75956af61c08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626b6c65782f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webklex/helpers)

This is a helpers package that provides some built in helpers, and also provides an Artisan generator to quickly create your own custom helpers.

Install
-------

[](#install)

Via Composer

```
$ composer require webklex/helpers
```

Setup
-----

[](#setup)

Add the service provider to the providers array in `config/app.php`.

```
'providers' => [
    webklex\helpers\HelperServiceProvider::class,
];
```

Publishing
----------

[](#publishing)

You can publish everything at once

```
php artisan vendor:publish --provider="webklex\helpers\HelperServiceProvider"
```

or you can publish groups individually.

```
php artisan vendor:publish --provider="webklex\helpers\HelperServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

This package comes with some built in helpers that you can choose to use or not. By default all of these helpers are inactive for your application. To adjust which helpers are active and which are inactive, open `config/helpers.php` and find the `package_helpers` option. Add any helpers you wish to activate to this key. Check the source code to see what functions are included in each helper and what each does.

You can also create your own custom helpers for inclusion in your application. An Artisan generator helps you quickly make new helpers for your application.

```
php artisan make:helper MyHelper
```

Your custom helper will be placed in `app/Helpers`, unless you override the default directory in your configuration.

By default, the service provider uses the `glob` function to automatically require any PHP files in the 'Helpers' directory. If you prefer a mapper based approach, you may edit the `custom_helpers` in the configuration file, and include the file name of any helpers in your custom directory you wish to activate. Within the new helper, define your own custom functions that will be available throughout your application.

```
if (!function_exists('hello')) {

    /**
     * say hello
     *
     * @param string $name
     * @return string
     */
    function hello($name)
    {
        return 'Hello ' . $name . '!';
    }
}
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Webklex](https://github.com/webklex)
- Andrew Brown
- All Contributors

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~49 days

Total

4

Last Release

3376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33ae6b4339438c4901fa8ed581119bbca61d071907f308ea8e9af597ae69f08a?d=identicon)[webklex](/maintainers/webklex)

---

Top Contributors

[![Webklex](https://avatars.githubusercontent.com/u/2884144?v=4)](https://github.com/Webklex "Webklex (13 commits)")

---

Tags

helperslaravellibraryphplaravelhelperswebklex

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/webklex-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/webklex-helpers/health.svg)](https://phpackages.com/packages/webklex-helpers)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)

PHPackages © 2026

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