PHPackages                             awheel/phptrie - 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. awheel/phptrie

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

awheel/phptrie
==============

Trie 树实现的违禁词搜索和替换

0.1.0(9y ago)54972MITPHPPHP &gt;=5.4.0

Since Apr 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/awheel/phptrie)[ Packagist](https://packagist.org/packages/awheel/phptrie)[ Docs](https://github.com/awheel/phptrie)[ RSS](/packages/awheel-phptrie/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PhpTrie
=======

[](#phptrie)

Trie 树实现的违禁词搜索和替换

安装
--

[](#安装)

```
composer require awheel/phptrie
```

示例
--

[](#示例)

```
$trie = new PhpTrie();
$words = ['我是', '我们', 'abcd'];
$string = '我们是违禁词: abcde';

$trie->addWord($words);
var_dump($trie->check($string))
var_dump($trie->search($string))
var_dump($trie->isWord('我们')))
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3360d ago

### Community

Maintainers

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

---

Top Contributors

[![fengqi](https://avatars.githubusercontent.com/u/517708?v=4)](https://github.com/fengqi "fengqi (7 commits)")

---

Tags

double-arraytrie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awheel-phptrie/health.svg)

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

###  Alternatives

[dario_swain/wall-poster-bundle

Wall posting for social groups

151.5k](/packages/dario-swain-wall-poster-bundle)

PHPackages © 2026

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