PHPackages                             yangqing/aliyun-api-gateway - 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. [API Development](/categories/api)
4. /
5. yangqing/aliyun-api-gateway

ActiveLibrary[API Development](/categories/api)

yangqing/aliyun-api-gateway
===========================

AliYun API Gateway For Hyperf

v1.0.3(6y ago)17MITPHPPHP &gt;=7.2

Since Mar 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yangqingKing/aliyun-api-gateway)[ Packagist](https://packagist.org/packages/yangqing/aliyun-api-gateway)[ RSS](/packages/yangqing-aliyun-api-gateway/feed)WikiDiscussions master Synced 2d ago

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

README
======

[](#readme)

说明
--

[](#说明)

基于hyperf框架的HTTP客户端的协程化的阿里云api的实现

安装
--

[](#安装)

```
composer require yangqing/aliyun-api-gateway

```

配置
--

[](#配置)

在`config`目录下配置文件`aliyun_api.php`

```
return [
    'app_id' => env('ALIYUN_API_APPID', ''), // 阿里云api授权应用的AppKey
    'app_secret' => env('ALIYUN_API_APP_SECRET', ''), // 阿里云api授权应用的AppSecret
    'hosts' => [ // 阿里云的接口域名
        'host1' => 'http://api.public.com',
    ],
];
```

使用场景
----

[](#使用场景)

```
    $c = new \YouMi\Aliyun\ApiGateway\ApiGateway();
    $data = $c->request($host, $path, $method, $params);

```

- $host 域名标识,在配置文件`config/aliyun.php`的`hosts`中配置, 如：host1
- $path 请求路径，即url后面的路径，如：/index
- $method 请求方法，`GET`, `POST`, `PUT`
- $params 请求参数，数组格式

> 返回json\_decode后的数组数据

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Every ~0 days

Total

4

Last Release

2259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20f573efa3e0e498bf1868eb95d5a56ee5a951793e3826303a1805902ca15b1f?d=identicon)[yangking](/maintainers/yangking)

---

Tags

phpapiswoolegatewayaliyunhyperf

### Embed Badge

![Health badge](/badges/yangqing-aliyun-api-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/yangqing-aliyun-api-gateway/health.svg)](https://phpackages.com/packages/yangqing-aliyun-api-gateway)
```

###  Alternatives

[hyperf/swagger

A swagger library for Hyperf.

19338.7k6](/packages/hyperf-swagger)[hyperf/graphql

A GraphQL component for hyperf.

151.0k](/packages/hyperf-graphql)

PHPackages © 2026

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