PHPackages                             jasonbradley/hash-ids-bundle - 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. jasonbradley/hash-ids-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

jasonbradley/hash-ids-bundle
============================

Symfony2 Bundle for HashIds library - http://hashids.org/php/

0.1.1(10y ago)04.0k1[1 PRs](https://github.com/jasonbradley/hash-ids-bundle/pulls)MITPHP

Since Aug 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jasonbradley/hash-ids-bundle)[ Packagist](https://packagist.org/packages/jasonbradley/hash-ids-bundle)[ RSS](/packages/jasonbradley-hash-ids-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

HashIds Bundle for Symfony2 -
-------------------------------------------------------

[](#hashids-bundle-for-symfony2---httphashidsorgphp)

Symfony2 bundle for accessing the HashIds library to generate short unique ids from integers

"Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers. It converts numbers like 347 into strings like “yr8”, or array of numbers like \[27, 986\] into “3kTMd”. You can also decode those ids back. This is useful in bundling several parameters into one or simply using them as short UIDs."

### 1. Include in composer.json

[](#1-include-in-composerjson)

```
"jasonbradley/hash-ids-bundle": "dev-master"

```

### 2. Include in AppKernel.php

[](#2-include-in-appkernelphp)

```
new JasonBradley\HashIdsBundle\JasonBradleyHashIdsBundle()

```

### 3. Bundle Configuration example (config.yml)

[](#3-bundle-configuration-example-configyml)

```
jason_bradley_hash_ids:
    salt: abc123
    min_hash_length: 25
    alphabet: "abcdefghijklmnopqrstuvwxyz"

```

### To use the service

[](#to-use-the-service)

```
$hash = $this->get('hash_ids')
            ->encode(123);

$numbers = $this->get('hash_ids')
    ->decode($hash);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

3984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b9e4f238cb5a6366013e74903e9f87d8b4ebf33cd3f66136cf37b982d0cb1bb?d=identicon)[jasonbradley](/maintainers/jasonbradley)

---

Top Contributors

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

---

Tags

hashids

### Embed Badge

![Health badge](/badges/jasonbradley-hash-ids-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jasonbradley-hash-ids-bundle/health.svg)](https://phpackages.com/packages/jasonbradley-hash-ids-bundle)
```

###  Alternatives

[vinkla/hashids

A Hashids bridge for Laravel

2.1k14.2M78](/packages/vinkla-hashids)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[deligoez/laravel-model-hashid

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

166114.2k](/packages/deligoez-laravel-model-hashid)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)

PHPackages © 2026

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