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

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

brotzka/laravel-helper
======================

A collection of usefull helpers for the Laravel Framework.

v1.0.0(8y ago)369MITPHP

Since Sep 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Brotzka/laravel-helper)[ Packagist](https://packagist.org/packages/brotzka/laravel-helper)[ RSS](/packages/brotzka-laravel-helper/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel-Helpers
===============

[](#laravel-helpers)

This is a collection of usefull helper-functions for the Laravel-Framework.

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

[](#installation)

First, install the package:

`composer require brotzka/laravel-helper`

Now you should add the HelperServiceProvider to your `config/app.php` providers-array:

```
    'providers' => [
        // ...
        // Other ServiceProvider
        // ...
        Brotzka\LaravelHelper\HelperServiceProvider::class,
    ],
```

Helpers
-------

[](#helpers)

Here you can find a short description of all available functions. Feel free to contribute.

### Slug-Helper

[](#slug-helper)

This Helper simply creates a unique slug for a specific model/table. If you update a model, simple add the ID of the Model to the function and it will be ignored.

Include the SlugHelper in your file (e.g. your Controller):

```

    namespace App\Http\Controllers;

    use Illuminate\Http\Request;
    use App\BlogPost;

    use Brotzka\LaravelHelper\Helpers\SlugHelper;

    class YourController extends Controller {

        public function store(Request $request)
        {
            $post = new BlogPost();
            $post->title = $request->input('title');

            $slug = new SlugHelper('posts', 'mysql');
            $post->slug = $slug->createUniqueSlug($post->title);

            // ...
            $post->save();
        }

        public function update(Request $request, $id)
        {
            $post = BlogPost::findOrFail($id);
            $post->title = $request->input('title');

            $slug = new SlugHelper('posts', 'mysql');
            $post->slug = $slug->createUniqueSlug($post->title, $post->id);

            // ...
            $post->save();
        }
    }
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3167d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e79668a526d6c7a15278bdf89f8c04daa19d9bbcb61ea788a4f1fc630603faf?d=identicon)[Brotzka](/maintainers/Brotzka)

---

Top Contributors

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

---

Tags

sluglaravelhelper

### Embed Badge

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

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

###  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)

PHPackages © 2026

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