PHPackages                             thanatos915/umeng - 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. thanatos915/umeng

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

thanatos915/umeng
=================

umeng push move to composer

1.0.1(7y ago)242GPL-3.0PHP

Since Nov 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/thanatos915/umeng)[ Packagist](https://packagist.org/packages/thanatos915/umeng)[ RSS](/packages/thanatos915-umeng/feed)WikiDiscussions master Synced 5d ago

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

基于Upush的服务端官方示例文件修改
-------------------

[](#基于upush的服务端官方示例文件修改)

- 增加命名空间
- 推送到packagist

安装：

```
composer require thanatos915/umeng
```

单播

```
use Umeng\UmengPush;

$key = "****";
$secret = "*****";
$push = new UmengPush($key, $secret);
$values = [
    'ticker' => '1', // require 通知栏提示文字
    'title' => '2', // require 通知标题
    'text' => '3', // require 通知文字描述
    'after_open' => 'go_app' // require 值可以为:
    // "go_app": open app
    // "go_url": 跳转到URL
    // "go_activity": open activity
    // "go_custom": 用户自定义内容。
];
echo $push->sendAndroidUnicast($values, [], 'device token');
# result: {"ret":"SUCCESS","data":{"msg_id":"uu77312149835056871500"}}
```

广播

```
$key = "****";
$secret = "*****";
$push = new UmengPush($key, $secret);
$values = [
    'ticker' => '1', // 必填 通知栏提示文字
    'title' => '2', // 必填 通知标题
    'text' => '3', // 必填 通知文字描述
    'after_open' => 'go_app' // 必填 值可以为:
    // "go_app": 打开应用
    // "go_url": 跳转到URL
    // "go_activity": 打开特定的activity
    // "go_custom": 用户自定义内容。
];
echo $push->sendAndroidBroadcast($values, []);
# result: {"ret":"SUCCESS","data":{"task_id":"us41183149835484509400"}}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

2

Last Release

2732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8534edb2f37d5d8c3aed68d985f4c9bc1be86021a05a77f071af0059b30fea5?d=identicon)[thanatos915](/maintainers/thanatos915)

---

Top Contributors

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

---

Tags

umengumeng-push

### Embed Badge

![Health badge](/badges/thanatos915-umeng/health.svg)

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

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[typo3/cms-reports

TYPO3 CMS Reports - Show status reports and installed services in the (System&gt;Reports) backend module.

137.1M58](/packages/typo3-cms-reports)[lcharette/uf_formgenerator

Form generator for UserFrosting V5

178.7k3](/packages/lcharette-uf-formgenerator)

PHPackages © 2026

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