PHPackages                             189900/wyhash - 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. 189900/wyhash

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

189900/wyhash
=============

A PHP port of wyhash

0.2.0(2y ago)07MITPHPPHP &gt;=7.4

Since Oct 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/189900/wyhash)[ Packagist](https://packagist.org/packages/189900/wyhash)[ Docs](https://github.com/189900/wyhash)[ RSS](/packages/189900-wyhash/feed)WikiDiscussions develop Synced today

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

PHP Wyhash (fast non-cryptographic hash)
========================================

[](#php-wyhash-fast-non-cryptographic-hash)

[![Latest Version](https://camo.githubusercontent.com/76091d438ca04f2060312259de0fa9d3ea0f3451dd2c68e22c4788c3a1e6870e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f3138393930302f7779686173682e7376673f7374796c653d666c61742d737175617265)](https://github.com/189900/wyhash/releases)[![Build Status](https://camo.githubusercontent.com/c76e3071a5ffb23302f0c547728905b289b312c1ec8aca0009dbcf03be83a7eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f3138393930302f7779686173682f63692e79616d6c3f6272616e63683d646576656c6f70266c6162656c3d63692532306275696c64267374796c653d666c61742d737175617265)](https://github.com/189900/wyhash/actions?query=workflow%3ACI)

`189900/wyhash` is a PHP implementation of the [wyhash algorithm by Wang Yi](https://github.com/wangyi-fudan/wyhash).

Generated hashes are compatible with [version final 4](https://github.com/wangyi-fudan/wyhash/tree/ea3b25e1aef55d90f707c3a292eeb9162e2615d8).

Installation
------------

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require 189900/wyhash
```

Usage
-----

[](#usage)

With a static call:

```
use N189900\Wyhash\Hasher;

$hash = Hasher::hash('payload bytes');
```

With a hasher instance:

```
use N189900\Wyhash\Hasher;

$hasher = new Hasher('123'); // optional custom seed
$hash = $hasher->final('payload bytes');
```

With a series of updates (to support streaming data, optimize memory usage):

```
use N189900\Wyhash\Hasher;

$hasher = new Hasher();
$hasher->update('first chunk');
$hasher->update('second chunk');
$hash = $hasher->final('optional closing chunk');
```

License
-------

[](#license)

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Total

4

Last Release

1059d ago

### Community

Maintainers

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

---

Top Contributors

[![189900](https://avatars.githubusercontent.com/u/13793684?v=4)](https://github.com/189900 "189900 (12 commits)")

---

Tags

hashwyhashnon-cryptographic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/189900-wyhash/health.svg)

```
[![Health](https://phpackages.com/badges/189900-wyhash/health.svg)](https://phpackages.com/packages/189900-wyhash)
```

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.4k52.1M317](/packages/hashids-hashids)[torann/hashids

Laravel package for Hashids

54343.7k](/packages/torann-hashids)[diarmuidie/niceid

PHP library to generate short, non-sequential, URL-friendly hashes of incremental IDs. Similar to YouTube (https://www.youtube.com/watch?v=dQw4w9WgXcQ) and Bitly (http://bit.ly/1D0CAzd) URLs.

1557.9k](/packages/diarmuidie-niceid)[delight-im/ids

Short, obfuscated and efficient IDs for PHP

2810.1k1](/packages/delight-im-ids)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.5k](/packages/bvdputte-kirby-fingerprint)[light/hashids

Hashids for Yii2

1120.8k](/packages/light-hashids)

PHPackages © 2026

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