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

ActiveLibrary[API Development](/categories/api)

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

SDK for aliyun service development

2.3.1(5y ago)080331MITPHPPHP &gt;=7.1

Since Mar 14Pushed 5y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (5)Versions (10)Used By (1)

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

> Aliyun Cloud Service SDK Core, composer library.

[![CI Build Status](https://github.com/AxiosCros/aliyun-sdk-core/workflows/CI/badge.svg)](https://github.com/AxiosCros/aliyun-sdk-core/actions?query=workflow%3ACI)[![Latest Stable Version](https://camo.githubusercontent.com/7727a41ccd8b46772ff4a915a422b5cd835d06520c3b4ed6925ebef0361ba054/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f616c6979756e2d73646b2d636f72652f762f737461626c65)](https://packagist.org/packages/axios/aliyun-sdk-core)[![License](https://camo.githubusercontent.com/9abc1eb6388731958f515d957a70fca41e696e007c444527cb1bb816fcd5df85/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f616c6979756e2d73646b2d636f72652f6c6963656e7365)](https://packagist.org/packages/axios/aliyun-sdk-core)

> [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-core
```

---

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

[](#customized-request)

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

class AliyunProduct
{

    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 RpcRequest(); // or RoaRequest
        $request->product(self::$product);
        $request->version(self::$version);
        $request->action($action);
        $request->endpoints(self::$endpoints);
        $request->credential(self::$credential);
        $request->serviceCode(self::$service_code);
        $request->protocol("https");
        return $request;
    }
}
```

---

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 = "";
$access_secret = "";

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

- Setting Region

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

- request

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

$request->method("POST");

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

- Get Response Content

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

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

License
-------

[](#license)

licensed under the [MIT License](https://github.com/AxiosCros/aliyun-sdk-core/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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 ~93 days

Recently: every ~165 days

Total

9

Last Release

1865d ago

Major Versions

1.1.0 → 2.0.32019-04-22

### 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 (114 commits)")

---

Tags

alibabacloudaliyunaliyun-sdksdkaliyunaliyun-sdkaliyun-service

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[alibabacloud/client

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

2223.5M367](/packages/alibabacloud-client)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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