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

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

neverbehave/lumen-helpers
=========================

generic helpers for Lumen

2.2.1(7y ago)048MITPHPPHP &gt;=7.0

Since Feb 23Pushed 7y agoCompare

[ Source](https://github.com/NeverBehave/lumen-helpers)[ Packagist](https://packagist.org/packages/neverbehave/lumen-helpers)[ Docs](https://github.com/NeverBehave/lumen-helpers)[ RSS](/packages/neverbehave-lumen-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (14)Used By (0)

Helpers
=======

[](#helpers)

This is a helpers package that provides some built in helpers, and also provides an Artisan generator (while lumen somehow won't provided in default?) to quickly create your own custom helpers.

Install
-------

[](#install)

Via Composer

```
$ composer require neverbehave/helpers
```

Setup
-----

[](#setup)

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

```
$app->register(neverbehave\helpers\HelperServiceProvider::class);
```

If you are using Laravel's automatic package discovery, you can skip this step.

Publishing
----------

[](#publishing)

You can publish everything at once

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

or you can publish groups individually.

```
php artisan vendor:publish --provider="neverbehave\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)

- [Andrew Brown](https://github.com/browner12)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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 ~87 days

Recently: every ~110 days

Total

13

Last Release

2674d ago

Major Versions

v1.1.1 → v2.0.02017-08-01

PHP version history (3 changes)v1.0.0PHP &gt;=5.6.0

v1.0.2PHP &gt;=5.5.9

v2.1.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fe1f64c9f0fbb2fb41777ed404e9082e7ed499221efba78712e884248aa4323?d=identicon)[NeverBehave](/maintainers/NeverBehave)

---

Top Contributors

[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (72 commits)")[![NeverBehave](https://avatars.githubusercontent.com/u/17120571?v=4)](https://github.com/NeverBehave "NeverBehave (2 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")

---

Tags

helperlaravellumenphphelperslumenNeverBehave

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)[browner12/helpers

generic helpers

289676.6k7](/packages/browner12-helpers)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)

PHPackages © 2026

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