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

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

browner12/helpers
=================

generic helpers

v3.7.0(1y ago)289706.7k↓40.8%447MITPHPPHP ^7.2|^8.0CI failing

Since Feb 23Pushed 1y ago11 watchersCompare

[ Source](https://github.com/browner12/helpers)[ Packagist](https://packagist.org/packages/browner12/helpers)[ Docs](https://github.com/browner12/helpers)[ RSS](/packages/browner12-helpers/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (22)Used By (7)

Helpers
=======

[](#helpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/58d69d434b723a114ced20e49ef0cfe48620f842eec2a4849d683bf0cdc16b7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62726f776e657231322f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/browner12/helpers)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8a90e3ce6c3c2595c43a3c62256c1736b474b12bf00e9b89db57d52ab3843665/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62726f776e657231322f68656c706572732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/browner12/helpers)[![Coverage Status](https://camo.githubusercontent.com/67d74c409b0f2e90ec6990ce09204ee93595136e7a0bb585086e1629e1bbd766/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f62726f776e657231322f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/browner12/helpers/code-structure)[![Quality Score](https://camo.githubusercontent.com/58ad282aaba64c9d6a7ed6c9c134ee765732659b7fb35f4e439d5028971b9fd6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62726f776e657231322f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/browner12/helpers)[![Total Downloads](https://camo.githubusercontent.com/021242e93fd1c5a02fe1ee4e5cde22d3b92a8e0eae430a9882c0f46d5ddadecb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62726f776e657231322f68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/browner12/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 browner12/helpers
```

Setup
-----

[](#setup)

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

```
'providers' => [
    browner12\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="browner12\helpers\HelperServiceProvider"
```

or you can publish groups individually.

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

55

—

FairBetter than 97% of packages

Maintenance42

Moderate activity, may be stable

Popularity56

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~165 days

Recently: every ~390 days

Total

21

Last Release

470d ago

Major Versions

v1.1.1 → v2.0.02017-08-01

2.1.4 → v3.0.02019-09-09

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

v1.0.2PHP &gt;=5.5.9

v2.1.0PHP &gt;=7.0

v3.0.0PHP ^7.2

v3.3.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5232313?v=4)[Andrew Brown](/maintainers/browner12)[@browner12](https://github.com/browner12)

---

Top Contributors

[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (113 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (3 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")[![Joemires](https://avatars.githubusercontent.com/u/34143261?v=4)](https://github.com/Joemires "Joemires (1 commits)")[![spaantje](https://avatars.githubusercontent.com/u/477362?v=4)](https://github.com/spaantje "spaantje (1 commits)")

---

Tags

laravelphphelpersbrowner12

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)

PHPackages © 2026

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