PHPackages                             alipush/alipush\_openapi2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alipush/alipush\_openapi2

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alipush/alipush\_openapi2
=========================

阿里云移动推送opapi2.0

115PHP

Since Apr 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/huhongyin/alipush_openapi2)[ Packagist](https://packagist.org/packages/alipush/alipush_openapi2)[ RSS](/packages/alipush-alipush-openapi2/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Open API SDK for php developers
===============================

[](#open-api-sdk-for-php-developers)

Requirements
------------

[](#requirements)

- PHP 5.3+

Build
-----

[](#build)

- to run unit tests, you will have to configure aliyun-sdk.properties files in your user directory, and make sure your project has corresponding service enabled, eg. openmr.

Example
-------

[](#example)

```
use Push\Request\V20160801 as Push;
use Core\Profile\DefaultProfile;
use Core\DefaultAcsClient;
use App\Models\PushLog;
include app_path().'\..\vendor\alisdk\aliyun-php-sdk-core\Config.php';

$iClientProfile = \Core\Profile\DefaultProfile::getProfile("cn-hangzhou", $this->pushInfo['AccessKeyID'], $this->pushInfo['AccessKeySecret']);
$client = new DefaultAcsClient($iClientProfile);

$request = new Push\PushRequest();
$request->setTarget($target); //推送目标: DEVICE:推送给设备; ACCOUNT:推送给指定帐号,TAG:推送给自定义标签; ALL: 推送给全部
$request->setTargetValue($targetValue); //根据Target来设定，如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔.(帐号与设备有一次最多100个的限制)
$request->setDeviceType($deviceType); //设备类型 ANDROID iOS ALL.
$request->setPushType($pushType); //消息类型 MESSAGE NOTICE
$request->setTitle($title); // 消息的标题
$request->setBody($body); // 消息的内容
$response = $client->getAcsResponse($request);
print_r($response);
```

Authors &amp;&amp; Contributors
-------------------------------

[](#authors--contributors)

- Zuhe
- [Ma Lijie](https://github.com/malijiefoxmail)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/246975742f46b6070e214d0a2249010fce3c651dff02d7f34ffea0ce31a3bc61?d=identicon)[huhongyin](/maintainers/huhongyin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/alipush-alipush-openapi2/health.svg)

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

###  Alternatives

[chenkby/yii2-region

Yii2中国省市区三级联动

325.1k](/packages/chenkby-yii2-region)

PHPackages © 2026

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