PHPackages                             gaoyang/aliyun-bundle - 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. gaoyang/aliyun-bundle

ActiveLibrary[API Development](/categories/api)

gaoyang/aliyun-bundle
=====================

Aliyun SDK for PHP

1.2(8y ago)111MITPHP

Since Feb 9Pushed 8y agoCompare

[ Source](https://github.com/jerrygaoyang/aliyun-bundle)[ Packagist](https://packagist.org/packages/gaoyang/aliyun-bundle)[ Docs](https://www.aliyun.com)[ RSS](/packages/gaoyang-aliyun-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

aliyun-bundle （集合版）
-------------------

[](#aliyun-bundle-集合版)

### 阿里云服务SDK集合版, 并包含 api 整合

[](#阿里云服务sdk集合版-并包含-api-整合)

- aliyun-core (阿里云核心包)
- aliyun-push (阿里云移动推送)
- aliyun-iot (阿里云IOT物联网套件)
- aliyun-sms (阿里云短信)

### 安装

[](#安装)

> composer require gaoyang/aliyun-bundle

### 阿里云短信 api

[](#阿里云短信-api)

```
use Aliyun\bundle\Sms;

$accessKeyId = '';
$accessKeySecret = '';
$region = 'cn-hangzhou';

$sms = new Sms($accessKeyId, $accessKeySecret, $region);

$PhoneNumbers = '';
$SignName = '';
$TemplateCode = '';
$TemplateParam = '';

$res = sms->send($PhoneNumbers, $SignName, $TemplateCode, $TemplateParam);
print_r($res);

```

### 阿里云推送

[](#阿里云推送)

```
use Aliyun\bundle\Push;

$accessKeyId = '';
$accessKeySecret = '';
$region = 'cn-hangzhou';

$push = new Push($accessKeyId, $accessKeySecret, $region);

$res = $push->send($appKey, $title, $body, $target, $targetValue, $pushType, $extParameters);
print_r($res);

```

### 阿里云IOT物联网套件

[](#阿里云iot物联网套件)

```
use Aliyun\bundle\Push;

$accessKeyId = '';
$accessKeySecret = '';
$region = 'cn-shanghai';

$iot = new Iot($accessKeyId, $accessKeySecret, $region);

//以下方法参数变量自己定义;这里忽略不定义了

//创建产品
$this->createProduct($productName, $productDesc);

//修改产品
$this->updateProduct($productKey, $productName, $productDesc);

//注册设备
$this->registerDevice($productKey, $deviceName);

//根据devicename查询设备
$this->queryDeviceByName($productKey, $deviceName);

//分页查询deivce
$this->queryDevice($productKey, $pageSize, $currentPage);

//批量申请设备
$this->applyDeviceWithNames($productKey, $deviceNames);

//查询申请单执行状态
$this->queryApplyStatus($applyId);

//分页查询申请的设备
$this->queryPageByApplyId($applyId, $currentPage, $pageSize);

//批量查询设备状态
$this->batchGetDeviceStatus($productKey, $deviceNames)

//更新设备影子
$this->updateDeviceShadow($productKey, $deviceName, $shadowMessage);

//获取设备影子
$this->getDeviceShadow($productKey, $deviceName);

//查询设备属性  -- 目前只有华东2支持
$this->queryDeviceProp($productKey, $deviceName);

//保存设备属性 -- 目前只有华东2支持
$this->saveDeviceProp($productKey, $deviceName, $props);

//删除设备属性  -- 目前只有华东2支持
$this->deleteDeviceProp($productKey, $deviceName, $propKey);

//发送消息
$this->pub($productKey, $deviceName, $messageContent);

//发送广播消息
$this->pubBroadcast($productKey, $messageContent);

//rrpc请求  需要配合设备端一同使用才会成功
$this->rrpc($productKey, $deviceName, $requestBase64Byte);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

Total

3

Last Release

3063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ae44cf7b3a3bf6aa2361d793825cf2a4eae0e7079a12217b803790a5e7f1904?d=identicon)[jerrygaoyang](/maintainers/jerrygaoyang)

---

Top Contributors

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

---

Tags

sdkaliyun

### Embed Badge

![Health badge](/badges/gaoyang-aliyun-bundle/health.svg)

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

PHPackages © 2026

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