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 1mo ago

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1503d 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

[mkusher/padawan

Smart php completion server

2547.2k](/packages/mkusher-padawan)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[eljam/circuit-breaker

A php Circuit Breaker

1711.0k1](/packages/eljam-circuit-breaker)[jandc/css-from-html-extractor

Php library which determines which css is used from html snippets.

1028.7k1](/packages/jandc-css-from-html-extractor)[php-di/zf2-bridge

Integrates PHP-DI to Zend Framework 2

1118.4k](/packages/php-di-zf2-bridge)[antares/accessible

PHP library that allows you to define your class' getters, setters and constructor with docblock annotations.

123.9k1](/packages/antares-accessible)

PHPackages © 2026

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