PHPackages                             jujiang/jjpush - 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. jujiang/jjpush

ActiveLibrary

jujiang/jjpush
==============

010PHP

Since Jun 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/a289459798/jjpush)[ Packagist](https://packagist.org/packages/jujiang/jjpush)[ RSS](/packages/jujiang-jjpush/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

jujiang/push
============

[](#jujiangpush)

Getting started
---------------

[](#getting-started)

`$ composer require jujiang/jjpush`

Usage
-----

[](#usage)

```
// 目前支持 华为，小米，vivo，oppo，如果只用部分，config删除对应配置
$push = new PushManage([
        'hms' => [
        'appid' => 'xxxx',
        'client_id' => 'xxxx',
        'client_secret' => 'xxxx',
    ],
    // 不匹配的机型，全部走小米推送
    'xm' => [
        'android' => [
            'package' => 'xxx',
            'app_secret' => 'xxxx'
        ]
    ],
    'vivo' => [
        'appid' => 'xxxxx',
        'app_key' => 'xxxx',
        'app_secret' => 'xxxxxx',
        'env' => 1, // 0 正式  1测试
    ],
    'oppo' => [
        'app_key' => 'xxxx',
        'app_secret' => 'xxxxxx',
    ],
    // 仅支持ios应用
    'umeng' => [
        'app_key' => 'xxxx',
        'app_secret' => 'xxxxxx',
    ]
], 'jujiang://push');

// 广播
$push->setTitle('测试标题')->setContent('测试内容')->setExtra(['a' => 1, 'b' => 2])->push();

// 别名发送
$push->setTitle('您收到一条消息')->setContent('今天天气真好')->setExtra(['a' => 444, 'b' => 55555])->pushAlias('aaaaaaa');

// 标签发送
$push->setTitle('测试标题22')->setContent('测试内容33')->setExtra(['a' => 1, 'b' => 2])->pushTag('aaaaaaa');

// 设置别名 OPPO
$push->setAlias("aaaaaaa", "CN_d3f9b29f401457966009a3feb9849e0f", 'oppo');

// 设置tag OPPO
$push->unsetAlias("aaaaaaa", 'oppo');

// 取消别名 OPPO
$push->setTag("aaaaaaa", 'CN_d3f9b29f401457966009a3feb9849e0f', 'oppo');

// 取消tag OPPO
$push->unsetTag("aaaaaaa", 'CN_d3f9b29f401457966009a3feb9849e0f', 'oppo');
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fe111fddaae716174b096f631b88cb908af643c81941375934f61e03833b1c0?d=identicon)[a289459798](/maintainers/a289459798)

---

Top Contributors

[![zhangzy2345](https://avatars.githubusercontent.com/u/7534453?v=4)](https://github.com/zhangzy2345 "zhangzy2345 (20 commits)")[![a289459798](https://avatars.githubusercontent.com/u/3126111?v=4)](https://github.com/a289459798 "a289459798 (14 commits)")

### Embed Badge

![Health badge](/badges/jujiang-jjpush/health.svg)

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

PHPackages © 2026

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