PHPackages                             shanliu/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shanliu/simhash

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

shanliu/simhash
===============

simhash for php extension

202C

Since Apr 8Pushed 4y agoCompare

[ Source](https://github.com/shanliu/simhash)[ Packagist](https://packagist.org/packages/shanliu/simhash)[ RSS](/packages/shanliu-simhash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

文本相似度比较(simhash算法)
==================

[](#文本相似度比较simhash算法)

> PHP扩展方式实现,支持 php&gt;=7.0

> php-src 为PHP方式实现 默认用php方式，编译扩展后使用扩展

> 使用示例 [test.php](./test.php)

#### linux or mac 下编译

[](#linux-or-mac-下编译)

```
cd simhash
phpize && ./configure
make && make install
```

#### windows 下编译

[](#windows-下编译)

> [php 8.1 windows dll](https://github.com/shanliu/simhash/releases)

> load build env

```
打开 [x64|x86] Native Tools Command Prompt for VS 2017 编译命令行
加载PHP编译变量 \your-php-sdk-binary-tools-dir\bin\phpsdk_setvars.bat

```

```
cd your_php_src # PHP 源码目录 下载 simhash 源码到 ext/simhash 下
buildconf.bat
configure --disable-all --enable-cli --enable-simhash=shared
nmake
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ae37fbaae90feca6062a7ef91796c75c8e957ff027eed32a0de47cf411e25f7?d=identicon)[shanliu](/maintainers/shanliu)

---

Top Contributors

[![shanliu](https://avatars.githubusercontent.com/u/2927231?v=4)](https://github.com/shanliu "shanliu (11 commits)")

---

Tags

phpsimhash

### Embed Badge

![Health badge](/badges/shanliu-simhash/health.svg)

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

###  Alternatives

[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)

PHPackages © 2026

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