PHPackages                             sy-records/baidu-textcensor - 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. sy-records/baidu-textcensor

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

sy-records/baidu-textcensor
===========================

baidu textcensor

v1.0.0(6y ago)151.4k41Apache-2.0PHP

Since Jan 7Pushed 6y agoCompare

[ Source](https://github.com/sy-records/baidu-textcensor)[ Packagist](https://packagist.org/packages/sy-records/baidu-textcensor)[ Docs](https://github.com/sy-records/baidu-textcensor)[ RSS](/packages/sy-records-baidu-textcensor/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

百度文本内容审核
========

[](#百度文本内容审核)

[百度文本内容审核](https://ai.baidu.com/tech/textcensoring)能一站式检测文本中夹杂的色情、推广、辱骂、违禁、涉政、灌水等垃圾内容，净化网络环境，为您的应用提供更可靠的内容安全保障，运用业界领先的深度学习技术，判断一段文本内容是否符合网络发文规范，实现自动化、智能化的文本审核，大幅节省内容审核的人力成本，为您的产品体验保驾护航

能力介绍
----

[](#能力介绍)

- 文本色情：对文本中的色情行为描述、色情资源链接、低俗交友、污秽文爱等内容进行识别
- 暴恐违禁：对暴力行为、恐怖描述、赌博、毒品、枪支弹药等违禁内容进行识别
- 政治敏感：对文本中的敏感事件、涉政人物、散布谣言、反动宣传等内容进行识别
- 恶意推广：对文本中带有售卖意向的软文广告，微信、QQ等个人联系方式等违规内容及变体进行识别
- 低俗辱骂：对文本中的侮辱谩骂、人身攻击、消极宣泄等内容进行识别
- 低质灌水：对网络社区常见的乱码、水帖、刷屏等无意义的灌水信息进行识别

安装
--

[](#安装)

```
composer require sy-records/baidu-textcensor
```

使用
--

[](#使用)

```
$appId = "";
$apiKey = "";
$secretKey = "";

$client = new \Luffy\TextCensor\Core($appId, $apiKey, $secretKey);
$res = $client->textCensorUserDefined("沈唁志博客：https://qq52o.me"); //待审核文本字符串

//具体参数说明见：https://ai.baidu.com/ai-doc/ANTIPORN/Nk3h6xbb2
var_dump($res);
```

说明
--

[](#说明)

1. AppID、API Key、Secret Key在百度Ai控制台的 [产品服务 / 内容审核 - 应用列表](https://console.bce.baidu.com/ai/?fromai=1#/ai/antiporn/app/list) 创建应用后获取；
2. 百度有默认审核策略，如果误杀严重，请进入 [内容审核平台创建自定义规则](https://ai.baidu.com/censoring#/strategylist) 进行修改策略；

其他系统
----

[](#其他系统)

- WordPress 插件

项目地址：

- Typecho 插件

项目地址：

License
-------

[](#license)

Apache-2.0

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

2360d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17615e789eec7042f64c6f4e8733421987d98fcdc4269395b42d2a7f0ae94301?d=identicon)[sy-records](/maintainers/sy-records)

---

Top Contributors

[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (12 commits)")

---

Tags

phptextcensoraibaidutextcensor

### Embed Badge

![Health badge](/badges/sy-records-baidu-textcensor/health.svg)

```
[![Health](https://phpackages.com/badges/sy-records-baidu-textcensor/health.svg)](https://phpackages.com/packages/sy-records-baidu-textcensor)
```

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.5M28](/packages/rubix-ml)[codewithkyrian/transformers

State-of-the-art Machine Learning for PHP. Run Transformers in PHP

757254.8k7](/packages/codewithkyrian-transformers)[maestroerror/laragent

Power of AI Agents in your Laravel project

639142.5k](/packages/maestroerror-laragent)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318117.1k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.2M216](/packages/symfony-ai-platform)[ardagnsrn/ollama-php

This is a PHP library for Ollama. Ollama is an open-source project that serves as a powerful and user-friendly platform for running LLMs on your local machine. It acts as a bridge between the complexities of LLM technology and the desire for an accessible and customizable AI experience.

20874.5k](/packages/ardagnsrn-ollama-php)

PHPackages © 2026

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