PHPackages                             amulet/znk-upush - 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. amulet/znk-upush

ActiveLibrary[API Development](/categories/api)

amulet/znk-upush
================

umeng api sdk

v0.9(7y ago)018MITPHPPHP &gt;=7.0.0

Since Apr 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Fushengfu/znkUpush)[ Packagist](https://packagist.org/packages/amulet/znk-upush)[ Docs](https://github.com/Fushengfu/znkUpush)[ RSS](/packages/amulet-znk-upush/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (9)Used By (0)

znkUpush
========

[](#znkupush)

集成封装友盟开放接口 \*友盟消息推送 \*友盟openapi接口类

---

AuthorAmuletE-mail安装要求
----

[](#安装要求)

php: ~7.0

安装教程
----

[](#安装教程)

`composer require amulet/znk-upush`

消息推送示例
------

[](#消息推送示例)

### 消息推送类 Umeng

[](#消息推送类-umeng)

```
use Amulet\Umeng;
$umeng = new Umeng(appkey, secret);

请求参数

$data = [
    'device_tokens'=> $post['device_tokens'],
    'content'=> $post['content'],
    'title'=> $post['title'],
    'subtitle'=> $post['subtitle']??'',
    'url'=> $post['url']??'',
    'task'=> $post['task'],
    'after_open'=> $post['after_open']
];

//指定用户推送消息
$result = $upush->setParams($data)->unicast($deviceType);// $deviceType 设备类型 ios 、 android

//广播
$result = $upush->setParams($data)->broadcast($deviceType);

```

### 请求openapi接口类 Client

[](#请求openapi接口类--client)

```
use Amulet\Client;
$client = new Client('apiKey', 'apiSecurity');
$result = $client->getAppCount();
var_dump($result);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~1 days

Total

8

Last Release

2611d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fdaa64ebd5916452d85d3a93d51d5d296c0a93c19f3b7420b969fe7376fa751?d=identicon)[Fushengfu](/maintainers/Fushengfu)

---

Top Contributors

[![trising](https://avatars.githubusercontent.com/u/30253365?v=4)](https://github.com/trising "trising (15 commits)")[![Fushengfu](https://avatars.githubusercontent.com/u/15023381?v=4)](https://github.com/Fushengfu "Fushengfu (9 commits)")

---

Tags

laravelumeng

### Embed Badge

![Health badge](/badges/amulet-znk-upush/health.svg)

```
[![Health](https://phpackages.com/badges/amulet-znk-upush/health.svg)](https://phpackages.com/packages/amulet-znk-upush)
```

###  Alternatives

[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7651.3k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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