PHPackages                             fernbruce/php-bad-words - 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. fernbruce/php-bad-words

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

fernbruce/php-bad-words
=======================

php-bad-words

v1.0(4y ago)012MITPHP

Since Mar 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fernbruce/php-bad-words)[ Packagist](https://packagist.org/packages/fernbruce/php-bad-words)[ RSS](/packages/fernbruce-php-bad-words/feed)WikiDiscussions main Synced today

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

"# php-bad-words"
1.创建数据库,测试数据在test/目录里面 表结构数据是table\_structure.sql,运行完之后需要按照项目的需要修改表名
2.把收集过来的敏感词文件放在data/目录下面
3.配置选项
'dir' 存放待合并敏感词文件的目录
'output' 合并处理之后存放敏感词的文件
'table\_name' 存放敏感词的表名
'syncToFile' 是否把词库存放到文件里面
'syncToDb' 是否把词库存放到db里面
4.实例PhpBadWords对象,运行run方法,把加工处理过的敏感词同步到db和redis里面
5.用到的方法
create创建敏感词，
update更新敏感词，
delete删除敏感词，
islegal判断文本里面有没有敏感词，
replace替换敏感词，
mark标记敏感词，
getBadWord获取文本里面出现的敏感词，

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1555d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/990fbeccdd43738b8c6cb2e7610f945166ac563ffe8816de14334416e5ba0c94?d=identicon)[fernbruce](/maintainers/fernbruce)

---

Top Contributors

[![fernbruce](https://avatars.githubusercontent.com/u/31583600?v=4)](https://github.com/fernbruce "fernbruce (18 commits)")

### Embed Badge

![Health badge](/badges/fernbruce-php-bad-words/health.svg)

```
[![Health](https://phpackages.com/badges/fernbruce-php-bad-words/health.svg)](https://phpackages.com/packages/fernbruce-php-bad-words)
```

###  Alternatives

[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k624.1k86](/packages/akeneo-pim-community-dev)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[hanson/foundation-sdk

220123.9k116](/packages/hanson-foundation-sdk)[oxid-esales/oxideshop-metapackage-ce

This is OXID eShop compilation metapackage.

13500.5k21](/packages/oxid-esales-oxideshop-metapackage-ce)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1615.7k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

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