PHPackages                             tigerb/easy-mipush - 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. tigerb/easy-mipush

ActiveLibrary

tigerb/easy-mipush
==================

easy to use mipush parallelly

v0.1.0(9y ago)10764MITPHPPHP &gt;=5.4.0

Since Sep 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TIGERB/easy-mipush)[ Packagist](https://packagist.org/packages/tigerb/easy-mipush)[ Docs](http://tiegrb.cn/)[ RSS](/packages/tigerb-easy-mipush/feed)WikiDiscussions master Synced 1mo ago

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

mipush
======

[](#mipush)

easy to use mipush parallelly 并行的小米sdk Version 0.1.0

### intro

[](#intro)

- 调用一次同时推送给ios&amp;android两种设备，不用分别推送
- 简化使用
    - 初始化设置Push:init('ios设置','android设置','通用设置','使用环境')
    - 调用推送方法Push::toUse('小米push接口名','接口参数')
- 目前只实现了按regid(登记id),alias(别名),user\_account(用户账号),topic(标签), multi\_topic(多标签),all(全体)推送

### how to use?

[](#how-to-use)

```
composer require tigerb/easy-mipush

使用格式：
try {
    Push::init(
        ['secret' => 'string,必传,ios密钥'],
        ['secret' => 'string,必传,android密钥', 'package_name' => 'string,必传,android包名']
        [
          'title'        => 'string,非必传,消息通知自定义title',
          'pass_through' => 'int,非必传,0通知栏消息,1透传,默认0',
          'notify_type'  => 'int,非必传,-1:默认所有,1:使用默认提示音提示,2:使用默认震动提示,4:使用默认led灯光提示',
          'time_to_send' => 'int,非必传,定时推送,单位毫秒,默认0',
        ],
        'string,develop开发环境，product生产环境, 默认develop'
        );
    $res = Push::toUse('string,小米push方法名', 'array, 该方法对应的参数');
    echo json_encode($res, JSON_UNESCAPED_UNICODE);
} catch (Exception $e) {
    echo $e->getMessage();
}

使用示例：
use Mipush\Push;

require './vendor/autoload.php';

try {
    Push::init(
        ['secret' => 'test'],
        ['secret' => 'test', 'package_name' => 'com.test'],
        [
          'title'        => 'test',
          'pass_through' => 0,
          'notify_type'  => -1,
          'time_to_send' => 0,
        ],
        'develop'
        );
    $res = Push::toUse('userAccount', [
            'user_account' => [1],
            'description'  => 'test'
        ]);
    echo json_encode($res, JSON_UNESCAPED_UNICODE);
} catch (Exception $e) {
    echo $e->getMessage();
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

3508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d77b4310b5aac55edda3c243ae679a0e2fbfd747ce57cb8a29df653ce2308ca?d=identicon)[TIGERB](/maintainers/TIGERB)

---

Top Contributors

[![TIGERB](https://avatars.githubusercontent.com/u/12149373?v=4)](https://github.com/TIGERB "TIGERB (12 commits)")[![duxphp](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/duxphp "duxphp (3 commits)")

---

Tags

mipushmipush

### Embed Badge

![Health badge](/badges/tigerb-easy-mipush/health.svg)

```
[![Health](https://phpackages.com/badges/tigerb-easy-mipush/health.svg)](https://phpackages.com/packages/tigerb-easy-mipush)
```

PHPackages © 2026

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