PHPackages                             techgrid/hashid-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. techgrid/hashid-bundle

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

techgrid/hashid-bundle
======================

Symfony Hash Id

01PHP

Since Jan 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/quile8x/hashid-symfony)[ Packagist](https://packagist.org/packages/techgrid/hashid-bundle)[ RSS](/packages/techgrid-hashid-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![PGS Software](https://camo.githubusercontent.com/71d1efacf76bc5b062740df1f6e7608fc53f1da961938bab93b3be11da366623/68747470733a2f2f7777772e7067732d736f66742e636f6d2f706773736f66742d6c6f676f2e706e67)](https://www.pgs-soft.com) / HashId
============================================================================================================================================================================================================================================

[](#--hashid)

[![PHP from Packagist](https://camo.githubusercontent.com/754039e2dfe298e39a6cb74c56f9c9191d53755a6df3f0c7033c998d938c0099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666f6e792f73796d666f6e792e737667)](https://camo.githubusercontent.com/754039e2dfe298e39a6cb74c56f9c9191d53755a6df3f0c7033c998d938c0099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666f6e792f73796d666f6e792e737667)[![Build Status](https://camo.githubusercontent.com/7822eeae8416584fc2a993b762f72a58d430fe1283daf65c89a30a3480b03b9c/68747470733a2f2f7472617669732d63692e6f72672f504753536f66742f4861736849642e7376673f6272616e63683d332e30)](https://travis-ci.org/PGSSoft/HashId)[![Code Coverage](https://camo.githubusercontent.com/536754e9d9969dc3677b2e8f0a25f011a9ec03e710666b812a45a5a5f680a3df/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f504753536f66742f4861736849642f6261646765732f636f7665726167652e706e673f623d6465762d6d6173746572)](https://scrutinizer-ci.com/g/PGSSoft/HashId/?branch=dev-master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4def731fd7420365af5010607a56e87285c1eb6255093879401aeb9f811842c7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f504753536f66742f4861736849642f6261646765732f7175616c6974792d73636f72652e706e673f623d6465762d6d6173746572)](https://scrutinizer-ci.com/g/PGSSoft/HashId/?branch=dev-master)

Symfony bundle for encoding integer route parameters and decoding request parameters with

---

Please use this version with Symfony ≥5.0

---

Replace predictable integer url parameters in easy way:

- `/hash-id/demo/decode/216/30` =&gt; `/hash-id/demo/decode/X46dBNxd79/30`
- `/order/315` =&gt; `/order/4w9aA11avM`

Pros:

- no need to use extra filters - use `{{ url('route_name', {'id': 1}) }}` in twig template or `$this->generateUrl('route_name', ['id' => 1]);` in controller or service
- [Doctrine Converter](http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html#doctrine-converter) compatible

Instalation
-----------

[](#instalation)

```
composer require quile8x/hashid-bundle-new
```

Hashids configuration
---------------------

[](#hashids-configuration)

```
# config/packages/pgs_hash_id.yaml

pgs_hash_id:
    converter:
        hashids:
            salt: 'my super salt'
            min_hash_length: 20
            alphabet: 'qwertyasdzxc098765-'
```

Controller configuration
------------------------

[](#controller-configuration)

```
use Pgs\HashIdBundle\Annotation\Hash;

class UserController extends Controller
{
    /**
     * @Hash("id")
     */
    public function edit(int $id)
    {
    //...
    }

    /**
     * Process multiple parameters - 'oneMore' will not be processed
     * @Route(name="test", path="/test/{id}/{other}/{oneMore}")
     * @Hash({"id","other"})
     */
    public function test(int $id, int $other, int $oneMore)
    {
    //...
    }
}
```

You can also check our [DemoController](src/Controller/DemoController.php).

Contributing
------------

[](#contributing)

Bug reports and pull requests are welcome on GitHub at .

About
-----

[](#about)

The project maintained by [software development agency](https://www.pgs-soft.com/) [PGS Software](https://www.pgs-soft.com/). See our other [open-source projects](https://github.com/PGSSoft) or [contact us](https://www.pgs-soft.com/contact-us/) to develop your product.

Follow us
---------

[](#follow-us)

[![Twitter URL](https://camo.githubusercontent.com/cb820a0ecc9645168e33b03925d7f14691262ddbaeaf66a0a91697803d0cba2d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=https://github.com/PGSSoft/InAppPurchaseButton)[![Twitter Follow](https://camo.githubusercontent.com/57521798958e2fbd8536f96ab43f0b55ef9e7d3529c7ba845ba8594694ac4304/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f706773736f6674776172652e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f77)](https://twitter.com/pgssoftware)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4afaa2d804b55176fef444c4f290686c581e0291143fbdf0a5729e5a3490743?d=identicon)[qui9999](/maintainers/qui9999)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/techgrid-hashid-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/techgrid-hashid-bundle/health.svg)](https://phpackages.com/packages/techgrid-hashid-bundle)
```

###  Alternatives

[tholu/php-packer

A PHP version of Packer, JavaScript obfuscation library originally created by Dean Edwards

137441.2k5](/packages/tholu-php-packer)[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)

PHPackages © 2026

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