PHPackages                             axios/aliyun-sdk - 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. axios/aliyun-sdk

AbandonedArchivedLibrary[API Development](/categories/api)

axios/aliyun-sdk
================

SDK for aliyun service development

2.1.1(6y ago)171.2k2Apache-2.0PHPPHP &gt;=7.1

Since Apr 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AxiosCros/aliyun-sdk)[ Packagist](https://packagist.org/packages/axios/aliyun-sdk)[ Docs](https://github.com/AxiosCros/aliyun-sdk)[ RSS](/packages/axios-aliyun-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

English | [简体中文](./README_CN.md)

> The set of Aliyun Cloud Service SDK ,Support for composer library.

[![Latest Stable Version](https://camo.githubusercontent.com/f671ce83b4df97b479d7c7fb8329e019acb2a33e21e0a2657842a3939122bebd/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f616c6979756e2d73646b2f762f737461626c65)](https://packagist.org/packages/axios/aliyun-sdk)[![License](https://camo.githubusercontent.com/556ac3d2dc433b850adf2d99861bd1e14d6156598c1d7d73b915e77039f7c6fe/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f616c6979756e2d73646b2f6c6963656e7365)](https://packagist.org/packages/axios/aliyun-sdk)

> [Aliyun Cloud official documentation center](https://help.aliyun.com/)

> QQ Group：521797692

Env
---

[](#env)

- PHP 7.1+.
- CURL extension.

Install
-------

[](#install)

```
composer require axios/aliyun-sdk
```

Development Plan
----------------

[](#development-plan)

- OSS -&gt; Base on aliyun/aliyun-oss-php-sdk
- SMS -&gt; base on flc/dysms
- [other services -&gt; auto generate by sdk code generator ](https://github.com/AxiosCros/aliyun-sdk/tree/master/library/services)
- ......

How To Use
----------

[](#how-to-use)

> [aliyun-sdk/example](https://github.com/AxiosCros/aliyun-sdk/tree/master/example)

- require composer autoload

```
require_once __DIR__. "/../vendor/autoload.php";
```

- auth

```
$access_id = "testAccessKeyId";
$access_secret = "testAccessKeySecret";

\aliyun\sdk\Aliyun::auth($access_id, $access_secret);
```

- Setting Region

```
\aliyun\sdk\Aliyun::region('cn-shanghai');

// or
$request = Vod::V20170321()->GetCategories();
$request->region("cn-shanghai);

// get region
$request->region();
```

- Request

```
$response = Vod::V20170321()->GetCategories()
    ->setCateId(-1)
    ->request();

// or
AliyunServices::Vod20170321()->GetCategories()
    ->setCateId(-1)
    ->request();
```

- Get Response Content

```
dump($response->getContent());
```

Customized Request
------------------

[](#customized-request)

```
use aliyun\sdk\core\lib\Request;

class Example
{

    protected static $product = "";

    protected static $service_code = "";

    /**
     * @var string
     * @example \aliyun\sdk\core\credentials\AccessKeyCredential
     * @example AccessKeyCredential
     */
    protected static $credential = "";

    protected static $version = "";

    protected static $endpoints = [
        "regions"  => [],
        "public"   => [],
        "internal" => []
    ];

    /**
     * @param $action
     *
     * @return Request
     */
    public static function client($action = null)
    {
        $request = new Request();
        $request->product(self::$product);
        $request->version(self::$version);
        $request->action($action);
        $request->endpoints(self::$endpoints);
        $request->credential(self::$credential);
        $request->serviceCode(self::$service_code);
        return $request;
    }
}
```

```
$request = Example::client();

$request->method("POST");

$response = $request->params("key", "value")
    ->headers("header_name", "header_content")
    ->options("guzzle_option_name", "option_value")
    ->request();

$result   = $response->getContent();
```

> [Request Option](http://docs.guzzlephp.org/en/stable/request-options.html)

License
-------

[](#license)

licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~40 days

Recently: every ~33 days

Total

13

Last Release

2471d ago

Major Versions

v0.5.9.x-dev → 1.0.02019-02-26

1.1.0 → 2.0.02019-04-20

PHP version history (2 changes)0.5.5PHP &gt;=7.0

1.0.1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/423b4de06d2238d3e39bc1bed3710038b75fb705faba842d964a627d618f5e33?d=identicon)[axios](/maintainers/axios)

---

Top Contributors

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

---

Tags

aliyunaliyunsdkcomposerphp7sdkaliyunaliyun-sdkaliyun-service

### Embed Badge

![Health badge](/badges/axios-aliyun-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/axios-aliyun-sdk/health.svg)](https://phpackages.com/packages/axios-aliyun-sdk)
```

###  Alternatives

[alibabacloud/client

Alibaba Cloud Client for PHP - Use Alibaba Cloud in your PHP project

2223.5M367](/packages/alibabacloud-client)[aliyunapi/php-aliyun-open-api-live

aliyunsdk

213.7k](/packages/aliyunapi-php-aliyun-open-api-live)

PHPackages © 2026

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