PHPackages                             daidai118/yii2-umengpush - 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. daidai118/yii2-umengpush

ActiveYii2-extension

daidai118/yii2-umengpush
========================

umengpush

0.2.2(9y ago)015MITPHP

Since Oct 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/daidai118/umengpush)[ Packagist](https://packagist.org/packages/daidai118/yii2-umengpush)[ RSS](/packages/daidai118-yii2-umengpush/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

友盟推送

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

```
composer require daidai118/yii2-umengpush

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by : 追加到components中

```

		'push'=>[
			'class' => 'daidai118\umengpush\Umeng',
			 'appkey'=>'xxxx',
	         'secret'=>'xxxx',
			 'alias_type'=>'fs',
			 'production'=>false,
		],

```

往ios发送别名消息 默认为安卓

```
Yii::$app->pushios->setStyle(Umeng::Ios)->customNotification('fs2',[
			'ticker'=>'abcdef',
			'title'=>'abcdef!',
			'text'=>'a什么鬼'.date("h:i:s"),
		]);
Yii::$app->pushios->customNotification('fs2',[
			'ticker'=>'abcdef',
			'title'=>'abcdef!',
			'text'=>'a什么鬼'.date("h:i:s"),
		]);

```

广播消息

```
		Yii::$app->push->broadcastNotification([
			'ticker'=>'abcdef',
			'title'=>'abcdef!',
			'text'=>'a什么鬼'.date("h:i:s"),
		]);

```

按照设备推送

```
Yii::$app->push->sendNotificationToDevices('devices_token',[
			'ticker'=>'abcdef',
			'title'=>'abcdef!',
			'text'=>'a什么鬼'.date("h:i:s"),
		]);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/748d439dca009370a83db41d6a505ca82eb1b49daadd66965c616d65f94d7f90?d=identicon)[daidai118](/maintainers/daidai118)

---

Top Contributors

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

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/daidai118-yii2-umengpush/health.svg)

```
[![Health](https://phpackages.com/badges/daidai118-yii2-umengpush/health.svg)](https://phpackages.com/packages/daidai118-yii2-umengpush)
```

PHPackages © 2026

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