PHPackages                             jiangshengxin/dfa - 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. jiangshengxin/dfa

ActiveLibrary

jiangshengxin/dfa
=================

jiangshengxin

8532PHP

Since Mar 15Pushed 7y agoCompare

[ Source](https://github.com/jiangshengxin/dfa)[ Packagist](https://packagist.org/packages/jiangshengxin/dfa)[ RSS](/packages/jiangshengxin-dfa/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

dfa
===

[](#dfa)

敏感词过滤类,内置了原始词库,将敏感词过滤为指定字符串 **描述:**

敏感词过滤为指定字符串

**安装:**

1.新建composer.json文件

2.加入以下内容:

{ "require": { "jiangshengxin/dfa":"dev-master" } }

3.执行命令:

composer install

4.下载完毕以后,进入下载好的vendor/jiangshengxin.目录,就是类包目录. 进入这个类包目录,可以看到composer.json文件.执行CMD命令,生成装载文件,就可以运行了:

composer update

**使用说明:**

require\_once **DIR**.'/vendor/autoload.php';

use Dfa\\trieTree;

$txt = "测试敏感词过滤,卧槽";//要检测的文字

$str = (new trieTree($txt))-&gt;endString;//实例化类 获取处理完毕的字符串

echo $str;//输出转换后的文字

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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://avatars.githubusercontent.com/u/1845949?v=4)[sxin](/maintainers/sxin)[@sxin](https://github.com/sxin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jiangshengxin-dfa/health.svg)

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

PHPackages © 2026

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