PHPackages                             snowwolf007cn/laravel-jpusher - 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. snowwolf007cn/laravel-jpusher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

snowwolf007cn/laravel-jpusher
=============================

JPush integration to laravel framework

3144[1 issues](https://github.com/snowwolf007cn/laravel-jpusher/issues)PHP

Since May 7Pushed 8y ago2 watchersCompare

[ Source](https://github.com/snowwolf007cn/laravel-jpusher)[ Packagist](https://packagist.org/packages/snowwolf007cn/laravel-jpusher)[ RSS](/packages/snowwolf007cn-laravel-jpusher/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-jpusher
===============

[](#laravel-jpusher)

JPush integration to laravel framework

[![Latest Stable Version](https://camo.githubusercontent.com/9b77310fac383baf41fc271c191ae731803b376e1e9c283537f52b58d9cbff9a/68747470733a2f2f706f7365722e707567782e6f72672f736e6f77776f6c66303037636e2f6c61726176656c2d6a7075736865722f762f737461626c65)](https://packagist.org/packages/snowwolf007cn/laravel-jpusher)[![Total Downloads](https://camo.githubusercontent.com/036e09fb5578ed4d5e4769e97563ffbf8d7e9a973574eca9cbe06ac89fbf39a4/68747470733a2f2f706f7365722e707567782e6f72672f736e6f77776f6c66303037636e2f6c61726176656c2d6a7075736865722f646f776e6c6f616473)](https://packagist.org/packages/snowwolf007cn/laravel-jpusher)[![Latest Unstable Version](https://camo.githubusercontent.com/5fcabbe745f36bb8e3ffc24a314d47138dd47148a36044353426cca0f81c3f50/68747470733a2f2f706f7365722e707567782e6f72672f736e6f77776f6c66303037636e2f6c61726176656c2d6a7075736865722f762f756e737461626c65)](https://packagist.org/packages/snowwolf007cn/laravel-jpusher)[![License](https://camo.githubusercontent.com/d35e56e30b19dbd734a6c15df764b39b566b677b98f41ed3d794a68441a90b55/68747470733a2f2f706f7365722e707567782e6f72672f736e6f77776f6c66303037636e2f6c61726176656c2d6a7075736865722f6c6963656e7365)](https://packagist.org/packages/snowwolf007cn/laravel-jpusher)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Composer](#composer)
    - [Laravel](#laravel)
- [braodcaster](#usage)
    - [Config JPush Broadcaster](#config-jpush-broadcaster)
    - [Set Audience](#set-audience)
    - [Add Payload](#add-payload)

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

[](#installation)

### Composer

[](#composer)

Execute the following command to get the latest version of the package:

```
composer require snowwolf007cn/laravel-jpusher

```

### Laravel

[](#laravel)

#### &gt;= laravel5.5

[](#-laravel55)

ServiceProvider will be attached automatically

Broadcaster
-----------

[](#broadcaster)

### Config JPush Broadcaster

[](#config-jpush-broadcaster)

Add following code into your **config/broadcasting.php** under **'connection'**

```
'jpush' => [
    'driver' => 'jpush',
    'app_key' => env('JPUSH_APP_KEY'),
    'master_secret' => env('JPUSH_MASTER_SECRET'),
],
```

fill your app key and secret in **.env**

### Set Audience

[](#set-audience)

Audiences are mapped to channels in laravel, and you can config channels like this.

```
Broadcast::channel('all', function ($user, $id) {
    return true;
});

Broadcast::channel('tag.{tag_name}', function ($user, $id) {
    return true;
});
```

examples above set two channels for diffrent audience configuration, **All** and **Tag**

### Add Payload

[](#add-payload)

Platforms, Notifications, Message and Options are send to broadcaster as payload in an array, which will be serialized in json and send to server.Platforms are default to 'all', i.e.

```
/**
 * Add payload to broadcast.
 */
public function broadcastWith()
{
    return [
        'message' => [
            'msg_content' => 'Hi,JPush',
            'content_type' => 'text',
            'title' => 'msg',
        ],
    ];
}
```

Read more on how to [broadcasting event](https://laravel.com/docs/5.5/broadcasting) and [JPush API](https://docs.jiguang.cn/jpush/server/push/server_overview/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0da89eff61ec763542f5758dc3e42d2225706a721c24b930a5820701bbed3a2?d=identicon)[snowwolf007cn](/maintainers/snowwolf007cn)

---

Top Contributors

[![snowwolf007cn](https://avatars.githubusercontent.com/u/985278?v=4)](https://github.com/snowwolf007cn "snowwolf007cn (1 commits)")

---

Tags

jpushlaravel

### Embed Badge

![Health badge](/badges/snowwolf007cn-laravel-jpusher/health.svg)

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

###  Alternatives

[hillholliday/craft-user-manual

Craft User Manual allows developers (or even content editors) to provide CMS documentation using Craft's built-in sections (singles, channels, or structures) to create a `User Manual` or `Help` section directly in the control panel.

8472.1k1](/packages/hillholliday-craft-user-manual)

PHPackages © 2026

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