PHPackages                             ymz/hyper\_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. [API Development](/categories/api)
4. /
5. ymz/hyper\_umeng

ActiveLibrary[API Development](/categories/api)

ymz/hyper\_umeng
================

hyperf框架下的友盟推送

1.0(5y ago)0191MITPHPCI failing

Since Jul 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aji88/umeng-push-hyperf)[ Packagist](https://packagist.org/packages/ymz/hyper_umeng)[ RSS](/packages/ymz-hyper-umeng/feed)WikiDiscussions master Synced today

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

 umeng
=======

[](#-umeng-)

 友盟推送SDK

[![StyleCI build status](https://camo.githubusercontent.com/501b50da51bf133b82086293b21ffc8307a610c8488cba7e202688f888fcfbc5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136303534343536332f736869656c64)](https://camo.githubusercontent.com/501b50da51bf133b82086293b21ffc8307a610c8488cba7e202688f888fcfbc5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136303534343536332f736869656c64) [![FOSSA Status](https://camo.githubusercontent.com/19dbe8cfc34b7be60a79fb675d1e34b7f51204bfce6df274fa1c539c89d8f943/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246796d7a253246554d656e672d507573682e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fymz%2FUMeng-Push?ref=badge_shield)

[![996.icu](https://camo.githubusercontent.com/ac8f294a80f65338db545230f1a881b9a382204a1f187c6ff40ee679d42d40ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c696e6b2d3939362e6963752d7265642e737667)](https://996.icu)[![LICENSE](https://camo.githubusercontent.com/be80b8cb211ceb2263744e99fdb161a40124901906fd7c7f47d6361760dd7e8b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d416e74692532303939362d626c75652e737667)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![HitCount](https://camo.githubusercontent.com/891a4caf1514d30105654b53954a5baf2a3419a70e45f6afaf28f3b40bdd17bc/687474703a2f2f686974732e6477796c2e696f2f796d7a2f756d656e672e737667)](http://hits.dwyl.io/ymz/umeng)

Installing
----------

[](#installing)

```
$ composer require ymz/umeng -vvv
```

配置
--

[](#配置)

在使用本扩展之前，你需要去 [友盟+](https://message.umeng.com) 注册账号，然后创建应用，获取应用的 Key 和秘钥。

使用
--

[](#使用)

```
require __DIR__ .'/vendor/autoload.php';

use ymz\UMeng\Android;
use ymz\UMeng\IOS;

// Android
$config = [
    'appKey' => '5b1df1**************',
    'appMasterSecret' => 'i7tzdarsw************',
    'production_mode' => true,
];
// IOS
$ios_config = [
    'appKey' => '5b1df0d1************',
    'appMasterSecret' => 'fa9ry9kd*********',
    'production_mode' => true,
];

$android = new Android($config);

$ios = new IOS($ios_config);
```

Android
-------

[](#android)

### customizedcast消息发送示例

[](#customizedcast消息发送示例)

```
$params = [
    'alias_type' => 'APP',
    'alias' => 1,
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",
    "description" => "测试广播通知-Android",
];

$response = $android->sendAndroidCustomizedcast($params);

```

### broadcast消息发送示例

[](#broadcast消息发送示例)

```
$params = [
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",

];
$extra = [
    'key1' => 'val1',
    'key2' => 'val2',
];

$response = $android->sendAndroidBroadcast($params, $extra);

```

### unicast消息发送示例

[](#unicast消息发送示例)

```
$params = [
    "device_tokens" => "测试提示文字",
    "display_type" => "notification", // message：消息 notification：通知
    //"custom" => '自定义custom',
    //以下内容为 notification  必填项
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",

];
//可选项
$extra = [
    'key1' => 'val1',
    'key2' => 'val2',
];

$response = $android->sendAndroidUnicast($params, $extra);

```

### filecast消息发送示例

[](#filecast消息发送示例)

```
$params = [
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",
];
//
$content = "aa" . "\n" . "bb";

$response = $android->sendAndroidFilecast($params, $content);

```

### groupcast消息发送示例

[](#groupcast消息发送示例)

```
$params = [
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",
];
//

$filter = [
    'where' => [
        'and' => [
            'tag' => 'test',
            'tag1' => 'test2',
        ],
    ],
];

$response = $android->sendAndroidGroupcast($filter, $params);

```

### sendAndroidCustomizedcastFileId 消息示例

[](#sendandroidcustomizedcastfileid-消息示例)

```
 $params = [
    "ticker" => "测试提示文字",
    "title" => "测试标题",
    "text" => "测试文字描述",
    "after_open" => "go_app",
    'alias_type' => 'APP',
];
$content = "aa" . "\n" . "bb";

$response = $android->sendAndroidCustomizedcastFileId($params, $content);

```

IOS
---

[](#ios)

### broadcast消息发送示例

[](#broadcast消息发送示例-1)

```
$params = [
    'alert' => [
        'title' => 'title',
        'body' => 'body',
    ],  //字符串或者JSON
    "description" => "测试广播通知-iOS"
];
$customized = [
    'key' => 'jey',
]; //可选
$response = $ios->sendIOSBroadcast($params, $customized);

```

### unicast消息发送示例

[](#unicast消息发送示例-1)

```
$params = [
    'device_tokens' => 'token',
    'alert' => [
        'title' => 'title',
        'body' => 'body',
    ],  //字符串或者JSON
    "description" => "测试单播消息-iOS"
];
$customized = [
    'key' => 'jey',
]; //可选
$response = $ios->sendIOSUnicast($params, $customized);

```

### filecast消息发送示例

[](#filecast消息发送示例-1)

```
$params = [
    'device_tokens' => 'token',
    'alert' => [
        'title' => 'title',
        'body' => 'body',
    ],  //字符串或者JSON
    "description" => "测试filecast文件通知-iOS"
];
$content = "aa" . "\n" . "bb";

$response = $ios->sendIOSFilecast($params, $content);

```

### groupcast消息发送示例

[](#groupcast消息发送示例-1)

```
$params = [
    'alert' => [
        'title' => 'title',
        'body' => 'body',
    ],  //字符串或者JSON
    "description" => "测试组播通知-iOS"
];
$filter = [
    'where' => [
        'and' => [
            'tag' => 'test',
            'tag1' => 'test2',
        ],
    ],
];

$response = $ios->sendIOSGroupcast($filter, $params);

```

### customizedcast消息发送示例

[](#customizedcast消息发送示例-1)

```
$params = [
    'alert' => [
        'title' => 'title',
        'body' => 'body',
    ],  //字符串或者JSON
    'alias_type' => 'APP',
    'alias' => 1,
    "description" => "测试alias通知-iOS"
];

$response = $ios->sendIOSCustomizedcast($params);

```

参考
--

[](#参考)

- [U-Push API 集成文档](https://developer.umeng.com/docs/66632/detail/68343)

工具
--

[](#工具)

[![](https://camo.githubusercontent.com/012b96622220782d301096190643c6eb350439b160468aa724f78b5b0251b727/68747470733a2f2f757079756e2e6c61726176656c636f64652e636e2f75706c6f61642f4a6574427261696e732f6a6574627261696e732d747261696e696e672d706172746e65722e706e67)](https://www.jetbrains.com/?from=UMeng-Push)

License
-------

[](#license)

MIT

[![FOSSA Status](https://camo.githubusercontent.com/d61d1fe510ebc51163141cc589dedeeb6e4507b77a323431082a6b3d2bc1c238/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246796d7a253246554d656e672d507573682e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fymz%2FUMeng-Push?ref=badge_large)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3691836?v=4)[yangmingzhi](/maintainers/yangmingzhi)[@yangmingzhi](https://github.com/yangmingzhi)

---

Top Contributors

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

---

Tags

phpsdkumengU-Push

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2312.4M25](/packages/php-opencloud-openstack)

PHPackages © 2026

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