PHPackages                             roukmoute/hashids-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. roukmoute/hashids-bundle

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

roukmoute/hashids-bundle
========================

Integrates hashids/hashids in a Symfony project

v4.0.0(4mo ago)46329.5k↓11.3%161MITPHPPHP ^8.1CI passing

Since Jun 14Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/roukmoute/hashids-bundle)[ Packagist](https://packagist.org/packages/roukmoute/hashids-bundle)[ RSS](/packages/roukmoute-hashids-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (26)Used By (1)

[![SymfonyInsight](https://camo.githubusercontent.com/5bdae00106aefb1cd109be9036ce1e83579d9dbb3f0d44fe9edcc30773e5abfc/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f62653936316435632d646135362d343462312d613039342d6532373036363830326132642f6d696e692e737667)](https://insight.symfony.com/projects/be961d5c-da56-44b1-a094-e27066802a2d)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cc742eecaf8b48051754c544a56d153ded53f3275a00a80dbfea8a5e71cdef13/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f756b6d6f7574652f686173686964732d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/roukmoute/hashids-bundle/?branch=master)[![Packagist Downloads](https://camo.githubusercontent.com/1ae83f52cc1aa2026bca79d7f0cb32e4cfd95317064536bf8563bf961020fb96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f756b6d6f7574652f686173686964732d62756e646c65)](https://camo.githubusercontent.com/1ae83f52cc1aa2026bca79d7f0cb32e4cfd95317064536bf8563bf961020fb96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f756b6d6f7574652f686173686964732d62756e646c65)

HashidsBundle
=============

[](#hashidsbundle)

> **Note:** This bundle is maintained, but for **new projects**, consider using [roukmoute/sqids-bundle](https://github.com/roukmoute/sqids-bundle) instead. [Sqids](https://sqids.org/) is the official successor to Hashids, featuring a simpler algorithm, consistent cross-language output, and a built-in profanity blocklist. However, Sqids is **not a drop-in replacement** — it produces different IDs. Only migrate if you don't rely on previously generated Hashids. See the [official Hashids recommendation](https://github.com/hashids/.github/blob/main/profile/README.md) for more details.

Integrates [hashids/hashids](https://github.com/ivanakimov/hashids.php) in a Symfony project.

Installation using composer
---------------------------

[](#installation-using-composer)

These commands requires you to have Composer installed globally.
Open a command console, enter your project directory and execute the following commands to download the latest stable version of this bundle:

### Using Symfony Flex

[](#using-symfony-flex)

```
    composer config extra.symfony.allow-contrib true
    composer req roukmoute/hashids-bundle

```

### Using Symfony Framework only

[](#using-symfony-framework-only)

```
    composer require roukmoute/hashids-bundle

```

If this has not been done automatically, enable the bundle by adding the following line in the `config/bundles.php` file of your project:

```
