PHPackages                             afiqiqmal/hashslug-laravel - 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. afiqiqmal/hashslug-laravel

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

afiqiqmal/hashslug-laravel
==========================

HashSlug for Laravel Model

1.2.0(7y ago)2363MITPHPPHP ^7.0

Since Aug 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/afiqiqmal/hashslug-laravel)[ Packagist](https://packagist.org/packages/afiqiqmal/hashslug-laravel)[ RSS](/packages/afiqiqmal-hashslug-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (8)Versions (5)Used By (0)

laravel-hashslug
================

[](#laravel-hashslug)

HashSlug Id for laravel

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

[](#installation)

> **NOTE**: Depending on your version of Laravel, you should install a different version of the package:
>
> Laravel VersionPackage Version5.5 ^1.2.\* , dev-master5.41.0.\* , dev-laravel-5.4

1. Install the package via Composer:

    ```
    $ composer require afiqiqmal/hashslug-laravel
    ```

    The package will automatically register itself with Laravel 5.5.

    ```
    ...
    Afiqiqmal\LaraHashSlug\LaraHashSlugProvider::class,
    ...
    ```
2. Optionally, publish the configuration file if you want to change any defaults:

    ```
    php artisan vendor:publish --provider="Afiqiqmal\LaraHashSlug\LaraHashSlugProvider"
    ```

Usage
-----

[](#usage)

use `UseHashSlug` Trait class in any model you need

```
class User extends Model {
   use UseHashSlug;

   //optional. default : "hashslug".
   protected $hash_column = "hash_column";
}
```

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

[](#configuration)

Default `hashslug.php`. publish provider if you want to change any defaults

```
return [
    'salt'     => env('HASHID_SALT', 'lara-hash-slug'),
    'length'   => env('HASHID_LENGTH', 12),
    'alphabet' => env('HASHID_ALPHABET', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'),
    'unique'   => env('HASHID_UNIQUE', true),
];
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

Total

2

Last Release

2820d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

1.2.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1285084ec2d00e6c1442d03992cd156772da7267efdcbe59ac913c0676a9eb89?d=identicon)[afiqiqmal](/maintainers/afiqiqmal)

---

Top Contributors

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

---

Tags

laravelpackagemodelhashslug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/afiqiqmal-hashslug-laravel/health.svg)

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

###  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)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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