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

ActiveLibrary

mycontroller/laravel-sensitive-word
===================================

Sensitive Word Service For Laravel5 and Lumen5

5.5.0(2y ago)26033MITPHPPHP &gt;=5.5.9

Since Sep 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MyController/laravel-sensitive-word)[ Packagist](https://packagist.org/packages/mycontroller/laravel-sensitive-word)[ Docs](https://github.com/mycontroller/laravel-sensitive-word)[ RSS](/packages/mycontroller-laravel-sensitive-word/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (21)Used By (0)

Sensitive Word Service For Laravel5 and Lumen5
----------------------------------------------

[](#sensitive-word-service-for-laravel5-and-lumen5)

敏感词验证服务

### 安装

[](#安装)

```
composer require mycontroller/laravel-sensitive-word
```

配置
--

[](#配置)

在 `/config/app.php` 文件中找到 `providers` 键，

```
'providers' => [
  ...
  MyController\SensitiveWord\Providers\SensitiveWordServiceProvider::class,
  ...
];
```

在 `/config/app.php` 文件中找到 `aliases` 键，

```
'aliases' => [
  ...
  'SensitiveWord' => MyController\SensitiveWord\Facades\SensitiveWordFacade::class,
  ...
];
```

使用
--

[](#使用)

```
$result = SensitiveWord::getFirstSensitiveWordInContent('待验证的含有敏感词的字符串');
dd($result);
```

关于验证规则
------

[](#关于验证规则)

```
提供了表单验证规则 has_sensitive_word
```

关于自定义敏感词库
---------

[](#关于自定义敏感词库)

```
这部分还没有做

```

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~0 days

Total

20

Last Release

992d ago

Major Versions

1.1.10 → 5.1.02023-08-24

1.2.0 → 5.5.02023-08-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/3025ccfd7488ed975165b4b6dee72f8cba96369c132a576de546d7d841f3ca6b?d=identicon)[MyController](/maintainers/MyController)

---

Top Contributors

[![MyController](https://avatars.githubusercontent.com/u/6927957?v=4)](https://github.com/MyController "MyController (15 commits)")

---

Tags

laravel5sensitivelumen5

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[illuminate/routing

The Illuminate Routing package.

1238.6M2.3k](/packages/illuminate-routing)[laravellux/html

HTML and Form Builders for the Laravel Framework

35239.2k3](/packages/laravellux-html)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)[laragear/turnstile

Use Cloudflare's no-CAPTCHA with HTTP/3 in your Laravel application.

684.5k](/packages/laragear-turnstile)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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