PHPackages                             vivlong/phalapi-aliyun-green - 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. [Security](/categories/security)
4. /
5. vivlong/phalapi-aliyun-green

ActiveLibrary[Security](/categories/security)

vivlong/phalapi-aliyun-green
============================

PhalApi 2.x 扩展类库：基于Aliyun的内容安全扩展

011PHP

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vivlong/phalapi-aliyun-green)[ Packagist](https://packagist.org/packages/vivlong/phalapi-aliyun-green)[ RSS](/packages/vivlong-phalapi-aliyun-green/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

阿里云Green内容安全扩展
==============

[](#阿里云green内容安全扩展)

PhalApi 2.x扩展类库，基于Aliyun的内容安全扩展。

安装和配置
-----

[](#安装和配置)

修改项目下的composer.json文件，并添加：

```
    "vivlong/phalapi-aliyun-green":"dev-master"

```

然后执行`composer update`。

安装成功后，添加以下配置到/path/to/phalapi/config/app.php文件：

```
    /**
     * 阿里云Green相关配置
     */
    'AliyunGreen' =>  array(
        'accessKeyId'       => '',
        'accessKeySecret'   => '',
        'regionId'          => 'cn-hangzhou',
    ),
```

并根据自己的情况修改填充。

注册
--

[](#注册)

在/path/to/phalapi/config/di.php文件中，注册：

```
$di->aliyunGreen = function() {
    return new \PhalApi\AliyunGreen\Lite();
};
```

使用
--

[](#使用)

使用方式：

```
  \PhalApi\DI()->aliyunGreen->textScan('测试内容');
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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/63cebb214330833e8bea309160266105934daf5e70e20db7ae58a6484443f37c?d=identicon)[vivlong](/maintainers/vivlong)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vivlong-phalapi-aliyun-green/health.svg)

```
[![Health](https://phpackages.com/badges/vivlong-phalapi-aliyun-green/health.svg)](https://phpackages.com/packages/vivlong-phalapi-aliyun-green)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.0M138](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24772.0k35](/packages/paragonie-ecc)

PHPackages © 2026

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