PHPackages                             nelsonkti/sensitive-word - 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. nelsonkti/sensitive-word

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

nelsonkti/sensitive-word
========================

敏感词

v1.0.0(6y ago)531.8k—4%1MITPHPPHP &gt;=5.6CI failing

Since Jul 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nelsonkti/sensitive-word)[ Packagist](https://packagist.org/packages/nelsonkti/sensitive-word)[ RSS](/packages/nelsonkti-sensitive-word/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

sensitive-word
==============

[](#sensitive-word)

过滤敏感词，采用 DFA 算法

> 增加包含词的过滤（如：敏感、敏感词）

Installation
------------

[](#installation)

```
$ composer require nelsonkti/sensitive-word
```

Laravel
-------

[](#laravel)

> 引导服务 config/app.php

```
'providers' => [
    Nelsonkti\SensitiveWord\SensitiveWordServiceProvider::class,
],

'aliases' => [
    'SensitiveWord' => Nelsonkti\SensitiveWord\SensitiveWord::class,
],

```

Usage
-----

[](#usage)

基本使用:

```
use Nelsonkti\SensitiveWord\Facades\SensitiveWord;

$path = './word.txt'

$content = '敏感，敏感词需要过滤'; #检查内容
$filename = '/txt/sensitive-words.txt'； #敏感词文件路径

SensitiveWord::searchWord($content, $filename);
# 返回： array('敏感', '敏感词');

SensitiveWord::filterWord($content, $filename);
# 返回： **，***需要过滤

```

License
-------

[](#license)

sensitive-word is licensed under [The MIT License (MIT)](https://github.com/nelsonkti/sensitive-word/blob/master/LICENSE).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93e303607aa0b2985263e8f57fc8a506915b3d8c0d0326c01c3a6f30264c2534?d=identicon)[nelsonkti](/maintainers/nelsonkti)

---

Top Contributors

[![nelsonkti](https://avatars.githubusercontent.com/u/58064299?v=4)](https://github.com/nelsonkti "nelsonkti (14 commits)")

---

Tags

laravelwordsensitivedfa

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nelsonkti-sensitive-word/health.svg)

```
[![Health](https://phpackages.com/badges/nelsonkti-sensitive-word/health.svg)](https://phpackages.com/packages/nelsonkti-sensitive-word)
```

###  Alternatives

[hekmatinasser/notowo

This Package helps developers change number to word for all language on Laravel freamwork PHP

32530.1k2](/packages/hekmatinasser-notowo)[hnhdigital-os/laravel-number-converter

Number to word, roman, ordinal converter

19167.0k2](/packages/hnhdigital-os-laravel-number-converter)[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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