PHPackages                             qiaweicom/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. qiaweicom/laravel-mipush

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

qiaweicom/laravel-mipush
========================

php laravel mi-push

1.1.0(7y ago)211MITPHPPHP &gt;=7.0.0

Since Jul 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/qiaweicom/laravel-mipush)[ Packagist](https://packagist.org/packages/qiaweicom/laravel-mipush)[ RSS](/packages/qiaweicom-laravel-mipush/feed)WikiDiscussions master Synced 3w ago

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

laravel-mi-push基于laravel5.5的小米推送
================================

[](#laravel-mi-push基于laravel55的小米推送)

安装方法
====

[](#安装方法)

### 1、安装

[](#1安装)

```
composer require qiaweicom/laravel-mipush
composer install

或

composer.json 中添加 "qiaweicom/laravel-mipush": "^1.0"
composer update

```

如果无法安装 请执行一下 composer update nothing 然后 composer update

### 2、配置app.php

[](#2配置appphp)

```
在config/app.php 'providers' 中添加 \qiaweicom\MiPush\MiPushServiceProvider::class,

```

### 3、执行命令

[](#3执行命令)

```
php artisan config:cache 清空配置缓存
php artisan vendor:publish

```

### 5、配置文件

[](#5配置文件)

```
config/mipush.php

```

实例
==

[](#实例)

### 安卓根据全局发送

[](#安卓根据全局发送)

```
$secret = config('mipush.android.app_secret');
$package = config('mipush.android.bundle_id');
Constants::setSecret($secret);//AppSecret
Constants::setPackage($package);//包名

$message = new Builder();
$message->title($title);  // 通知栏的title
$message->description($description); // 通知栏的descption
$message->passThrough(0);  // 这是一条通知栏消息，如果需要透传，把这个参数设置成1,同时去掉title和descption两个参数
$message->payload($payload); // 携带的数据，点击后将会通过客户端的receiver中的onReceiveMessage方法传入。
$message->extra(Builder::notifyEffect, 1); // 此处设置预定义点击行为，1为打开app
$message->extra(Builder::notifyForeground, 1); // 应用在前台是否展示通知，如果不希望应用在前台时候弹出通知，则设置这个参数为0
$message->notifyId(2); // 通知类型。最多支持0-4 5个取值范围，同样的类型的通知会互相覆盖，不同类型可以在通知栏并存
$message->build();

$sender = new Sender();

$res = $sender->broadcastAll($message)->getRaw();
return $res;

```

### 苹果全局发送

[](#苹果全局发送)

```
$secret = config('mipush.ios.app_secret');
$package = config('mipush.ios.bundle_id');
Constants::setSecret($secret);//AppSecret
Constants::setPackage($package);//包名

 // Constants::useSandbox(); //此代码为测试环境添加

 $message = new IOSBuilder();
 $message->title($title);
 $message->body($Description);
 $message->soundUrl('default');
 $message->badge('-1');
 $message->extra('payload', $Payload);
 $message->build();

 $sender = new Sender();

 $res = $sender->broadcastAll($message)->getRaw();
 return $res;

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~0 days

Total

2

Last Release

2917d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2010236?v=4)[Kang Hee Jong](/maintainers/devkang)[@DevKang](https://github.com/DevKang)

---

Top Contributors

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

---

Tags

laravel mi-push

### Embed Badge

![Health badge](/badges/qiaweicom-laravel-mipush/health.svg)

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

###  Alternatives

[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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