PHPackages                             mrynk/l4-hashids - 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. mrynk/l4-hashids

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

mrynk/l4-hashids
================

A Laravel 4 package for the official hashids library

v2.1(12y ago)33571MITPHPPHP &gt;=5.3.0

Since Sep 9Pushed 12y ago2 watchersCompare

[ Source](https://github.com/mrynk/l4-hashids)[ Packagist](https://packagist.org/packages/mrynk/l4-hashids)[ RSS](/packages/mrynk-l4-hashids/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

l4-hashids
==========

[](#l4-hashids)

A Laravel 4 package for the official hashids library

Installation
============

[](#installation)

Add `mrynk\l4-hashids` as a requirement to composer.json:

```
{
    "require": {
        "mrynk/l4-hashids": "master"
    }
}
```

Update your packages with `composer update` or install with `composer install`.

Once Composer has installed or updated your packages you need to register Hashids with Laravel itself. Open up app/config/app.php and find the providers key towards the bottom and add:

```
'Mrynk\L4Hashids\L4HashidsServiceProvider'
```

Configuration
=============

[](#configuration)

L4-Hashids's configuration file can be extended by creating `app/config/packages/mrynk/l4-hashids/config.php`. You can find the default configuration file at vendor/mrynk/l4-hashids/src/config/config.php.

You can quickly publish a configuration file by running the following Artisan command.

```
$ php artisan config:publish mrynk/l4-hashids

```

Usage
=====

[](#usage)

You can use Hashids to obfuscate your url id's.

Use it in your controller like:

```
public function myAction( $pHash )
{
	$id = Hashids::decrypt( $pHash );
	Model::find( reset( $id ) );
}
```

Since v2.0 you can define different setting groups. Obviously default is the default group. To use another you can explicitly tell so:

Use it in your controller like:

```
public function myAction( $pHash )
{
	$id = Hashids::make('groupname')->decrypt( $pHash );
	Model::find( reset( $id ) );
}
```

A more cleaner way would be to use it in your route model binding

```
Route::bind('user', function( $value, $route )
{
    if( $result = User::find( Hashids::decrypt( $value ) ) )
    	return $result;
	throw new NotFoundException;

});
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

4500d ago

Major Versions

v1.1 → v2.02014-02-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/56bc4a4cfc57eb515c744be17a4f9b953ddc03d6a6b78f823dd17647abcb4bb4?d=identicon)[mrynk](/maintainers/mrynk)

---

Top Contributors

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

---

Tags

laravelhashidsmrynk

### Embed Badge

![Health badge](/badges/mrynk-l4-hashids/health.svg)

```
[![Health](https://phpackages.com/badges/mrynk-l4-hashids/health.svg)](https://phpackages.com/packages/mrynk-l4-hashids)
```

###  Alternatives

[vinkla/hashids

A Hashids bridge for Laravel

2.1k13.9M78](/packages/vinkla-hashids)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[deligoez/laravel-model-hashid

Generate, Save, and Route Stripe/Youtube-like Hash IDs for Laravel Eloquent Models

166109.2k](/packages/deligoez-laravel-model-hashid)[cybercog/laravel-optimus

An Optimus bridge for Laravel. Id obfuscation based on Knuth's multiplicative hashing method.

193573.4k](/packages/cybercog-laravel-optimus)

PHPackages © 2026

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