PHPackages                             coolelephant/huaweicloud - 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. coolelephant/huaweicloud

ActiveLibrary[API Development](/categories/api)

coolelephant/huaweicloud
========================

Huawei cloud api,华为云通用SDK接口,适用华为云全部产品

v1.0.11(5y ago)242MITPHPPHP &gt;=7.1

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alanstars/HuaweiCloud)[ Packagist](https://packagist.org/packages/coolelephant/huaweicloud)[ RSS](/packages/coolelephant-huaweicloud/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (13)Used By (0)

HuaweiCloud
-----------

[](#huaweicloud)

华为云接口封装,支持华为云平台通用接口,还在不断完善中，因为公司项目着急使用，暂时先以能用为主，后期会不断完善更新

安装方法
----

[](#安装方法)

```
composer require coolelephant/huaweicloud

```

使用方法
----

[](#使用方法)

本方法支持命名空间，如您的项目支持自动加载，直接实例化即可

```
$huaweiCloud = new \CoolElephant\HuaweiYun\HuaweiCloud('a1d1f50cad21415fbdd13d8f53d36d60','cfc881cc704c4fba8d8fef5788e03e6b');
$response = $huaweiCloud->option(true)
                        ->uri('/rest/caas/relationnumber/partners/v1.0')
                        ->method('POST')
                        ->data(['relationNum' => 1888888888,'callerNum' => 18666666666])
                        ->request();

```

如您的项目不支持自动加载，则需要再上面的基础上引入

```
require_once('../vendor/autoload.php');

```

返回结果已做处理，以array 数组的形式输出

```
[
    'resultcode'        =>  0,
    'resultdesc'        =>  'Success',
    'subscriptionId'    =>  'f36934ad-74b3-4666-85bc-05f0fbcb46f5',
    'relationNum'       =>  '+8616558940111',
    'callDirection'     =>  0,
    'duration'          =>  120,
    'maxDuration'       =>  1
];

```

具体返回值请查看官方接口
------------

[](#具体返回值请查看官方接口)

[点击查看官方文档](https://support.huaweicloud.com/api-PrivateNumber/privatenumber_02_0002.html)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~2 days

Total

12

Last Release

2142d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.0.9PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28946423?v=4)[alanstars](/maintainers/alanstars)[@alanstars](https://github.com/alanstars)

---

Top Contributors

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

---

Tags

apisdkhuawei cloud SDKHuawei cloud API

### Embed Badge

![Health badge](/badges/coolelephant-huaweicloud/health.svg)

```
[![Health](https://phpackages.com/badges/coolelephant-huaweicloud/health.svg)](https://phpackages.com/packages/coolelephant-huaweicloud)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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