PHPackages                             bhuvidya/laravel-helper-loader - 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. bhuvidya/laravel-helper-loader

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

bhuvidya/laravel-helper-loader
==============================

Load multiple helpers from a source directory, providing support for them to be concatenated into a cache file in the bootstrap/cache directory.

v8.0(5y ago)124MITPHPPHP &gt;=7.1.0CI failing

Since Apr 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bhuvidya/laravel-helper-loader)[ Packagist](https://packagist.org/packages/bhuvidya/laravel-helper-loader)[ Docs](https://github.com/bhuvidya/laravel-helper-loader)[ RSS](/packages/bhuvidya-laravel-helper-loader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (9)Used By (0)

Laravel Helper Loader
=====================

[](#laravel-helper-loader)

[![License](https://camo.githubusercontent.com/7ba2ddf654cce4e5508ca64609e6b7ccf2d8954dad4dcac76ecf6f1c42d8fa84/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d68656c7065722d6c6f616465722f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-helper-loader)[![Total Downloads](https://camo.githubusercontent.com/83609f4f28c443ef08558e1a96193aac6efc9c6db5559bec9c78d3e9dc0fa509/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d68656c7065722d6c6f616465722f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-helper-loader)[![Latest Stable Version](https://camo.githubusercontent.com/9772ec5337fc6619f48348b02634f95f3c762189bbf24153ffb74962fd28a70d/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d68656c7065722d6c6f616465722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-helper-loader)[![Latest Unstable Version](https://camo.githubusercontent.com/63b71e16ee087e8c96ca7f82c859ca1fe286a225835ece0890cae0df42eed876/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d68656c7065722d6c6f616465722f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-helper-loader)

**Note I have now switched the semver versioning for my Laravel packages to "match" the latest supported Laravel version.**

Laravel Helper Loader is a package that will load multiple, custom "helper" modules from a given path. This allows you to separate your custom helper functions into different php files. You can also cache multiple helper files into one, quick to load file, a la Laravel "config".

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

[](#installation)

Add `bhuvidya/laravel-helper-loader` to your app:

```
$ composer require "bhuvidya/laravel-helper-loader"

```

**If you're using Laravel 5.5 or above, you don't have to edit `app/config/app.php`.**

Otherwise, edit `app/config/app.php` and add the service provider:

```
'providers' => [
    'BhuVidya\HelperLoader\HelperLoaderServiceProvider',
]

```

Configuration
-------------

[](#configuration)

The configuration file specifies the path to your helper files (default `APP_ROOT/helpers`), and the cache file (default `APP_ROOT/bootstrap/cache/helpers.php`).

You can manage and customise the configuration by installing the default config file:

```
$ php artisan vendor:publish --provider='BhuVidya\HelperLoader\HelperLoaderServiceProvider' --tag=config
```

The following config file will be published in `config/helper_loader.php`:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Path to helpers. Can either be relative to base path, or use an
    | absolute path.
    |--------------------------------------------------------------------------
    */

    'path' => env('HELPER_LOADER_PATH', 'helpers'),

    /*
    |--------------------------------------------------------------------------
    | Path to cache file. Can either be relative to bootstrap cache path, or use an
    | absolute path.
    |--------------------------------------------------------------------------
    */

    'cache' => env('HELPER_LOADER_CACHE_FILE', 'helpers.php'),

];

```

Alternately, you can set the Helper Loader config vars by using your `.env` file. As you can see above, the env variables used are:

```
HELPER_LOADER_PATH
HELPER_LOADER_CACHE_FILE

```

Usage
-----

[](#usage)

So once your helpers path is set, you can freely add and edit helper modules to that path, and they will be loaded automatically for you. For a production environment, you may want to cache your helper files. You can do this in a way similar to caching your config files:

```
$ php artisan helper-loader:cache

```

If the helper loader cache file exists, it is always loaded, even if you have updated or added to your helper modules. You can clear the cache file as follows:

```
$ php artisan helper-loader:clear

```

Credits
-------

[](#credits)

- [bhu Boue vidya](https://github.com/bhuvidya)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~73 days

Recently: every ~84 days

Total

8

Last Release

2063d ago

Major Versions

v1.0.6 → v8.02020-09-17

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.0.6PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d88c0eb87ca5e69e7db7aaebd5ae9545f913b4890146afe0f2be21d5a5a41793?d=identicon)[bhuvidya](/maintainers/bhuvidya)

---

Top Contributors

[![bhuvidya](https://avatars.githubusercontent.com/u/455707?v=4)](https://github.com/bhuvidya "bhuvidya (10 commits)")

---

Tags

helperslaravelpackagelaravelhelpersbhuvidya

### Embed Badge

![Health badge](/badges/bhuvidya-laravel-helper-loader/health.svg)

```
[![Health](https://phpackages.com/badges/bhuvidya-laravel-helper-loader/health.svg)](https://phpackages.com/packages/bhuvidya-laravel-helper-loader)
```

###  Alternatives

[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)

PHPackages © 2026

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