PHPackages                             kewin.cheng/ali-green-api - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. kewin.cheng/ali-green-api

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

kewin.cheng/ali-green-api
=========================

the ali-green-api of checking content \[阿里内容检测服务封装，包括垃圾文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测\]

2732[1 issues](https://github.com/chenghongqiang/AliGreenAPI/issues)PHP

Since Nov 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/chenghongqiang/AliGreenAPI)[ Packagist](https://packagist.org/packages/kewin.cheng/ali-green-api)[ RSS](/packages/kewincheng-ali-green-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AliGreenAPI
===========

[](#aligreenapi)

阿里内容检测服务

阿里内容检测服务封装，包括垃圾文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测

### 使用方法：

[](#使用方法)

$aliGreentAPI = AliGreenAPI::getInstance();

\------------单一数据---------------

$aliGreentAPI-&gt;checkText("在哪里场所可以进行xingjiaoyi");

$aliGreentAPI-&gt;checkImg("");

\------------多条数据---------------

文本检测

$textArr = array("haha", "放学了", "交易");

$aliGreentAPI-&gt;checkText($textArr);

图片检测

$imgArr = array("[http://dun.163.com/res/web/case/terror\_danger\_3.jpg?3febae60454e63d020d04c66015a65e3","http://nos.netease.com/yidun/2-0-0-4f903f968e6849d3930ef0f50af74fc2.jpg](http://dun.163.com/res/web/case/terror_danger_3.jpg?3febae60454e63d020d04c66015a65e3%22,%22http://nos.netease.com/yidun/2-0-0-4f903f968e6849d3930ef0f50af74fc2.jpg)");

$aliGreentAPI-&gt;checkImg($imgArr);

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d318751b9eaa8ef79fdc08140e3b8177947df654d1319afbca5fb1ce77e5982?d=identicon)[chenghongqiang](/maintainers/chenghongqiang)

---

Top Contributors

[![kewinchq](https://avatars.githubusercontent.com/u/3771087?v=4)](https://github.com/kewinchq "kewinchq (2 commits)")

### Embed Badge

![Health badge](/badges/kewincheng-ali-green-api/health.svg)

```
[![Health](https://phpackages.com/badges/kewincheng-ali-green-api/health.svg)](https://phpackages.com/packages/kewincheng-ali-green-api)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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