定制 horde/ext-xxhash 二次开发

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

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

horde/ext-xxhash

Composer 安装命令:

pie install horde/ext-xxhash

包简介

xxHash hashing extension for PHP

README 文档

README

This extension allows for hashing via the xxHash algorithm.

Documentation for xxHash can be found at » http://code.google.com/p/xxhash/.

Purpose

This extension is maintained for educational purposes only. horde/xxhash used to tie into horde/lz4 for supporting the xxhash algorithm. Modern PHP 8 brings its own xxhash methods in core and horde/lz4 is going to be ported to this core functionality.

Making horde/xxhash compatible with latest PHP 8.x practices is a toy project and learning experience. It serves no practical purposes. I last contributed c code patches to PHP many years ago and mostly learned from Sara Golemon's seminal book on PHP Interals "Extending and Embedding PHP", published in 2006. I am also not the original author, neither of xxhash nor of horde/xxhash and in no way affiliated with the original PHP implementation.

You want to use this for some reason? Great! Let me know, I am curious!

Configration

php.ini:

extension=horde_xxhash.so

Function

  • horde_xxhash — xxHash computation

horde_xxhash — xxHash computation

Description

string horde_xxhash (string $data)

xxHash computation.

Pameters

  • data

    The string to hash.

Return Values

Returns the 32-bit hash value (in hexidecimal), or FALSE if an error occurred.

Examples

$hash = horde_xxhash('test');

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: C

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2026-03-29