PHPackages                             mofing/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. mofing/umeng

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

mofing/umeng
============

umeng 消息推送，支持composer安装使用

1.1.0(7y ago)0844↓50%1MITPHPPHP ~5.6|~7.0

Since May 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wcj343169893/umeng)[ Packagist](https://packagist.org/packages/mofing/umeng)[ Docs](https://github.com/wcj343169893/umeng)[ RSS](/packages/mofing-umeng/feed)WikiDiscussions master Synced 1mo ago

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

基于umeng官方php sdk v1.4,支持cakephp 3.x
===================================

[](#基于umeng官方php-sdk-v14支持cakephp-3x)

安装
--

[](#安装)

```
$ composer install "mofing/umeng":"~1.1"
```

或者修改composer.json

```
{
    "require": {
        "mofing/umeng": "~1.1"
    }
}

```

1.  开发者中心 创建一个应用得到app\_key和app\_master\_secret

用法
--

[](#用法)

Android用法:

```
    use UmengPusher\Umeng\Pusher\UmengPusher;
    $settings = [
        "android" => [
            "app_key" => "aaa",
            "app_master_secret" => "bbbb"
        ],
        "product" => false
    ];
    $umeng = new UmengPusher($settings);
    $device_token = 'xxxx';
    $predefined = [
            "after_open" => "go_custom",
            "ticker" => "测试提示文字",
            "title" => "测试标题",
            "text" => "测试文字描述",
            "custom" => [
                "name" => "ddd"
            ]
        ];
    $extraField = array(); //other extra filed
    $umeng->android()->sendUnicast($device_token,$predefined,$extraField); //单播
```

IOS用法:

```
    use UmengPusher\Umeng\Pusher\UmengPusher;
    $settings = [
        "ios" => [
            "app_key" => "aaa",
            "app_master_secret" => "bbbb"
        ],
        "product" => false
    ];

    $UmengPusher=new UmengPusher($settings);
    $device_token = 'xxxx';
    $predefined = [
        'alert' => [
            "title" => "title",
            "subtitle" => "subtitle",
            "body" => "这里是消息数据"
        ]
    ];
    $customField = array(); //other custom filed
    $UmengPusher->ios()->sendUnicast($device_token,$predefined,$customField); //单播

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~376 days

Total

2

Last Release

2904d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ba50770ab3b983b6876cc5d96fb7915f8f1ff6efeb560de643d7c6948aa8f56?d=identicon)[wcj343169893](/maintainers/wcj343169893)

---

Top Contributors

[![wcj343169893](https://avatars.githubusercontent.com/u/502789?v=4)](https://github.com/wcj343169893 "wcj343169893 (8 commits)")[![ashe717](https://avatars.githubusercontent.com/u/30425811?v=4)](https://github.com/ashe717 "ashe717 (1 commits)")

---

Tags

composerlumencakephpumeng

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lorenzo/cakephp-email-queue

Queue, preview and and send emails stored in the database

57121.5k1](/packages/lorenzo-cakephp-email-queue)[eventhomes/laravel-mandrillhooks

A simple Mandrill webhook controller to help with events. Compatible with Laravel 5+ and Lumen 5+.

6375.3k](/packages/eventhomes-laravel-mandrillhooks)[narendravaghela/cakephp-mailgun

Mailgun plugin for CakePHP - Send emails using Mailgun API

23356.6k](/packages/narendravaghela-cakephp-mailgun)[iandenh/cakephp-sendgrid

SendgridEmail plugin for CakePHP

16123.4k](/packages/iandenh-cakephp-sendgrid)[calchen/laravel-dingtalk-robot-notification

钉钉智能群助手 Laravel/Lumen 消息通知扩展包（Dingtalk robot message notifications for Laravel/Lumen）

2326.4k](/packages/calchen-laravel-dingtalk-robot-notification)[pyrech/composer-notifier

Display desktop notifications when composer finishes to install / update

411.7k](/packages/pyrech-composer-notifier)

PHPackages © 2026

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