PHPackages                             t-kuni/php-pearson-hashing - 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. t-kuni/php-pearson-hashing

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

t-kuni/php-pearson-hashing
==========================

1.0.1(6y ago)0280[1 issues](https://github.com/t-kuni/php-pearson-hashing/issues)MITPHPCI failing

Since Dec 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/t-kuni/php-pearson-hashing)[ Packagist](https://packagist.org/packages/t-kuni/php-pearson-hashing)[ RSS](/packages/t-kuni-php-pearson-hashing/feed)WikiDiscussions master Synced today

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

PHP Pearson Hashing
===================

[](#php-pearson-hashing)

Implementation of [Pearson Hashing](https://en.wikipedia.org/wiki/Pearson_hashing) algorithm for PHP.

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

[](#installation)

```
composer require t-kuni/php-pearson-hashing

```

Usage
=====

[](#usage)

```
use TKuni\PhpPearsonHashing\PearsonHasher;

$hasher = new PearsonHasher();
echo $hasher->hash(8, 'any message');

```

Output:

```
82eed2e9264c7400

```

### Description Of hash()

[](#description-of-hash)

```
public function hash(int $length, string $data, bool $raw_output = false)

```

#### Parameters

[](#parameters)

- length
    - hash length in bytes.
- message
    - Message to be hashed.
- raw\_output
    - When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.

#### Return Values

[](#return-values)

Returns a string containing the calculated message digest as lowercase hexits unless raw\_output is set to true in which case the raw binary representation of the message digest is returned.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2343d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7825234?v=4)[t-kuni](/maintainers/t-kuni)[@t-kuni](https://github.com/t-kuni)

---

Top Contributors

[![t-kuni](https://avatars.githubusercontent.com/u/7825234?v=4)](https://github.com/t-kuni "t-kuni (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/t-kuni-php-pearson-hashing/health.svg)

```
[![Health](https://phpackages.com/badges/t-kuni-php-pearson-hashing/health.svg)](https://phpackages.com/packages/t-kuni-php-pearson-hashing)
```

###  Alternatives

[nativephp/electron

Electron wrapper for the NativePHP framework.

519114.4k8](/packages/nativephp-electron)[kadet/keylighter

Yet another syntax highlighter for PHP

333.2k1](/packages/kadet-keylighter)[code16/formoj

Customizable form renderer

332.6k](/packages/code16-formoj)[nullthoughts/laravel-data-sync

Laravel utility to keep records synced between environments through source control

331.4k](/packages/nullthoughts-laravel-data-sync)

PHPackages © 2026

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