PHPackages                             mitoop/laravel-jpush - 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. mitoop/laravel-jpush

ActiveLibrary

mitoop/laravel-jpush
====================

laravel jpush

v9.0.0(2y ago)112.2k4MITPHP

Since Dec 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mitoop/laravel-jpush)[ Packagist](https://packagist.org/packages/mitoop/laravel-jpush)[ RSS](/packages/mitoop-laravel-jpush/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Laravel JPush
=============

[](#laravel-jpush)

基于 `jpush/jpush` `3.6.6` 版本(当前最新版本), 三分钟完成极光推送开发.

Install
-------

[](#install)

```
composer require mitoop/laravel-jpush
```

Require
-------

[](#require)

- Laravel ^9|^10

Configure
---------

[](#configure)

在 `config/services`里增加极光配置 :

```
    'jpush' => [
        // 极光 app kye
        'app_key' => env('JPUSH_APP_KEY'),
        // 极光 master secret
        'master_secret' => env('JPUSH_MASTER_SECRET'),
        // 仅对iOS有效 开发环境设置为false 生产环境设置为true
        'apns_production' => env('JPUSH_APNS_PRODUCTION', false),
        // 接口请求日志文件 为 null 不记录日志
        'log_file' => env('JPUSH_LOG_FILE'),
    ],

```

Use
---

[](#use)

推送可以采用同步或异步任意一种方式(推荐异步)

一下代码示例假设使用 `JPush` alias

同步推送

```
JPush::pushNow('别名', '通知', '附加信息');
JPush::pushNow(['别名数组'], '通知', '附加信息');
JPush::pushNow('all', '通知', '附加信息'); // 推送给所有人
```

异步推送

```
JPush::pushQueue('别名', '通知', '附加信息');
JPush::pushQueue(['别名数组'], '通知', '附加信息');
JPush::pushQueue('all', '通知', '附加信息'); // 推送给所有人
```

更多：

```
如果上面两种方式不能满足使用
尝试查看 `Mitoop\JPush\JPushService` 里面的方法可以组合链式调用

```

Tips
----

[](#tips)

```
在极光后台查看推送历史的时候, 有个选择框, Web/Api，
通过包推送的是 `Api` 这种方式，但是默认值是 `Web`，查看的时候要切换一下

```

Links
-----

[](#links)

[http://docs.jiguang.cn/jpush/server/push/rest\_api\_v3\_push/](http://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/)

极光文档我觉得是推送服务商里写的最好的文档

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~439 days

Total

4

Last Release

1012d ago

Major Versions

v2.0.8 → v3.0.12020-09-08

v3.0.1 → v8.0.02020-10-09

v8.0.0 → v9.0.02023-08-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/1645a978f51dcbbc8e50a17bf7daaa12fd1b01a4b19784d0010325d78c9b53f8?d=identicon)[Mitoop](/maintainers/Mitoop)

---

Top Contributors

[![mitoop](https://avatars.githubusercontent.com/u/7368344?v=4)](https://github.com/mitoop "mitoop (17 commits)")[![puzzle9](https://avatars.githubusercontent.com/u/13518196?v=4)](https://github.com/puzzle9 "puzzle9 (1 commits)")[![zhichao-poper](https://avatars.githubusercontent.com/u/141097055?v=4)](https://github.com/zhichao-poper "zhichao-poper (1 commits)")

---

Tags

jpush

### Embed Badge

![Health badge](/badges/mitoop-laravel-jpush/health.svg)

```
[![Health](https://phpackages.com/badges/mitoop-laravel-jpush/health.svg)](https://phpackages.com/packages/mitoop-laravel-jpush)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[palpalani/laravel-sqs-queue-json-reader

Custom SQS queue reader for Laravel

26109.8k](/packages/palpalani-laravel-sqs-queue-json-reader)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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