定制 lastguest/murmurhash 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lastguest/murmurhash

最新稳定版本:2.1.1

Composer 安装命令:

composer require lastguest/murmurhash

包简介

MurmurHash3 Hash

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

PHP Implementation of MurmurHash3

More information about these algorithms can be found at:

Porting of the MurmurHash3 JavaScript version created by Gary Court (https://github.com/garycourt/murmurhash-js)

Installation

Use composer :

composer require lastguest/murmurhash

Usage

You can retrieve an hash via hash3 static method of class Murmur

<?php
use lastguest\Murmur;

echo Murmur::hash3("Hello World");
// cnd0ue

You can pass a precise seed positive integer as second parameter

<?php
use lastguest\Murmur;

echo Murmur::hash3("Hello World", 1234567);
// qtq2u

If you need the integer hash, use the hash3_int method

<?php
use lastguest\Murmur;

echo Murmur::hash3_int("Hello World");
// 427197390

统计信息

  • 总下载量: 9.05M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 131
  • 点击次数: 1
  • 依赖项目数: 57
  • 推荐数: 0

GitHub 信息

  • Stars: 129
  • Watchers: 9
  • Forks: 39
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04