PHPackages                             silentlun/yii2-getui-v2 - 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. silentlun/yii2-getui-v2

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

silentlun/yii2-getui-v2
=======================

GetuiPush extension for YII2

1.2(10mo ago)0431BSD-3-ClausePHP

Since Apr 19Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/silentlun/yii2-getui-v2)[ Packagist](https://packagist.org/packages/silentlun/yii2-getui-v2)[ RSS](/packages/silentlun-yii2-getui-v2/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

基于个推RestAPI V2开发的Yii2扩展。
========================

[](#基于个推restapi-v2开发的yii2扩展)

本插件适用于uniapp开发的APP。其他框架开发的APP，需要修改intent参数。

因iOS不显示个推的通知消息，目前只有透传消息功能，如需个推通知消息功能可自行修改Push.php文件。

Installation 安装
---------------

[](#installation-安装)

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

Either run

```
php composer require --prefer-dist silentlun/yii2-getui-v2 "*"

```

or add

```
"silentlun/yii2-getui-v2": "*"

```

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

使用方法
----

[](#使用方法)

### 1.配置组件 :

[](#1配置组件--)

```
    'components' => [
        'getui' => [
            'class' => 'silentlun\getui\Push',
            'appName' => 'com.xxx.app', //APP包名
            'appId' => 'xxxx', //个推APPID
            'appKey' => 'xxxxx', //个推APPKEY
            'masterSecret' => 'xxxxx', //个推masterSecret
            'host' => 'https://restapi.getui.com',
        ],
    ],
```

### 2.执行群推 pushToAll

[](#2执行群推-pushtoall)

```
    public function actionPush()
    {
        $data = [
            'title' => '系统通知标题',
            'body' => '系统通知内容',
            'payload' => [], //自定义参数
        ];

        $result = Yii::$app->getui->pushToAll($data);
        if ($result['code'] == 0) {
            echo 'success';
        } else {
            echo $result['msg'];
        }
    }

```

### 3.执行cid单推 pushToSingleByCid

[](#3执行cid单推-pushtosinglebycid)

```
    public function actionPush()
    {
        $data = [
            'title' => '系统通知标题',
            'body' => '系统通知内容',
            'payload' => [], //自定义参数
        ];
        $cid = 'd6d5f5df5d8e6b4eb9557bbdd98bb449';
        $result = Yii::$app->getui->pushToSingleByCid($cid, $data);
        if ($result['code'] == 0) {
            echo 'success';
        } else {
            echo $result['msg'];
        }
    }

```

### 4.执行cid批量推 pushToListByCid

[](#4执行cid批量推-pushtolistbycid)

```
    public function actionPush()
    {
        $data = [
            'title' => '系统通知标题',
            'body' => '系统通知内容',
            'payload' => [], //自定义参数
        ];
        $cids = [
            'd6d5f5df5d8e6b4eb9557bbdd98b34c9',
            'd6d5f5df5d8e6b4eb9557bbdd98b4444',
            'd6d5f5df5d8e6b4eb9557bbdd98b4444',
        ];

        $result = Yii::$app->getui->pushToListByCid($cids, $data);
        if ($result['code'] == 0) {
            echo 'success';
        } else {
            echo $result['msg'];
        }
    }

```

其他接口
----

[](#其他接口)

待完善。。。

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance55

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Every ~775 days

Total

3

Last Release

301d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77e448a626a78a92eee5ccb5303bbbcaae55f00e4414f769f295b4f7f72b05ad?d=identicon)[silentlun](/maintainers/silentlun)

---

Top Contributors

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

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/silentlun-yii2-getui-v2/health.svg)

```
[![Health](https://phpackages.com/badges/silentlun-yii2-getui-v2/health.svg)](https://phpackages.com/packages/silentlun-yii2-getui-v2)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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