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

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

dynamophp/hash-bundle
=====================

Symfony bundle to use the dynamophp/hash library

1.1.0(1y ago)012MITPHPPHP &gt;=8.1

Since Dec 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/BaptisteContreras/Dynamo-PHP-Hash-Bundle)[ Packagist](https://packagist.org/packages/dynamophp/hash-bundle)[ RSS](/packages/dynamophp-hash-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

Dynamo-PHP-Hash-Bundle
======================

[](#dynamo-php-hash-bundle)

Goal
----

[](#goal)

This Symfony bundle is a bridge to use the [Dynamo-PHP-Hash Lib](https://github.com/BaptisteContreras/Dynamo-PHP-Hash) in a Symfony application.

The bundle provides an Interface (**Dynamophp\\HashBundle\\Service\\DynamoHasherInterface**) to easily use a preconfigured [Hasher](https://github.com/BaptisteContreras/Dynamo-PHP-Hash/blob/master/src/Hasher.php).

Usage
-----

[](#usage)

`composer require dynamophp/hash-bundle`

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

[](#configuration)

```
dynamo_php_hash:
  start_selection: 3
  end_selection: 0
```

- **start\_selection** : Selection the X first hexits from the result of the primary hash function.
- **end\_selection** : Selection the X last hexits from the result of the primary hash function.

More information about this implementation can be found [here](https://github.com/BaptisteContreras/Dynamo-PHP-Hash).

For the moment the bundle only provides a **sha256** hasher version, which uses this algorithm as the primary hash function of the underlying hasher.

Usage in your code
------------------

[](#usage-in-your-code)

In your Controller :

```
DemoController.php

#[Route('/demo/', name: 'demo_')]
class DemoController extends AbstractController
{
    #[Route(name: 'index')]
    public function demoIndex(DynamoHasherInterface $dynamoHasher): Response
    {
        dump($dynamoHasher->hash('ob')); // 48
        dump($dynamoHasher->hash('oc')); // 32
        dump($dynamoHasher->hash('od')); // 23
        dump($dynamoHasher->hash('a')); // 38
        dump($dynamoHasher->hash('b')); // 22

        return new JsonResponse('ok');
    }
}
```

In your Service :

```
DemoService.php

class DemoService extends AbstractController
{
    public __construct(private readonly DynamoHasherInterface $dynamoHasher){}

    public function doSmth(string $value): void
    {
        dd($dynamoHasher->hash($value));
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~223 days

Total

4

Last Release

569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29d32f0de7bf0abd199486576ed2251e0b40d1f4312330f74c842a226a244947?d=identicon)[BaptisteContreras](/maintainers/BaptisteContreras)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/ux-chartjs

Chart.js integration for Symfony

1003.2M18](/packages/symfony-ux-chartjs)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[pentiminax/ux-datatables

DataTables.net integration for Symfony

605.6k](/packages/pentiminax-ux-datatables)

PHPackages © 2026

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