PHPackages                             swatchion/simhash - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. swatchion/simhash

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

swatchion/simhash
=================

A PHP implementation of SimHash algorithm for fast document similarity detection

v1.0.0(9mo ago)034MITPHPPHP &gt;=8.0

Since Jun 3Pushed 9mo agoCompare

[ Source](https://github.com/swatchion/simhash)[ Packagist](https://packagist.org/packages/swatchion/simhash)[ RSS](/packages/swatchion-simhash/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

SimHash PHP Library
===================

[](#simhash-php-library)

一个高效的 PHP 8.0+ SimHash 算法实现库，用于快速文档相似性检测和去重。

功能特点
----

[](#功能特点)

- 🚀 高性能的 SimHash 算法实现
- 📊 支持文本相似度计算和比较
- 🔧 灵活的配置选项（哈希位数、K-shingles）
- 🌍 支持中文和多语言文本处理
- 📦 标准 Composer 包，易于集成
- ✅ 完整的单元测试覆盖
- 📖 详细的文档和示例

安装
--

[](#安装)

使用 Composer 安装：

```
composer require swatchion/simhash
```

快速开始
----

[](#快速开始)

### 基本使用

[](#基本使用)

```
