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

ActiveLibrary

haiaouang/mipush
================

The Hht mipush package.

1.0.2(8y ago)02152MITPHPPHP &gt;=5.5.9

Since Aug 18Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (1)Used By (2)

mipush
======

[](#mipush)

[![Latest Stable Version](https://camo.githubusercontent.com/7f8aefbd4485d00c12d2c0844d51bf02ec2fd00c3f0c18dcca22a4491b566257/687474703a2f2f7777772e6d616967756f65722e636f6d2f686169616f75616e672f6d69707573682f737461626c652e737667)](https://packagist.org/packages/haiaouang/mipush)[![License](https://camo.githubusercontent.com/52a96a92804056b70e17ba71a67634acaeda3877426558f6fd73a040c5e7f4cb/687474703a2f2f7777772e6d616967756f65722e636f6d2f686169616f75616e672f6d69707573682f6c6963656e73652e737667)](https://packagist.org/packages/haiaouang/mipush)

laravel小米推送包

安装
--

[](#安装)

在你的终端运行以下命令

`composer require haiaouang/mipush`

或者在composer.json中添加

`"haiaouang/mipush": "1.0.*"`

然后在你的终端运行以下命令

`composer update`

安装依赖包 [haiaouang/support](https://github.com/haiaouang/support)

安装依赖包 [haiaouang/pusher](https://github.com/haiaouang/pusher)

在配置文件中添加 config/app.php

```
    'providers' => [
        /**
         * 添加供应商
         */
        Hht\Pusher\PusherServiceProvider::class,
        /**
         * 添加供应商
         */
        Hht\Support\ServiceProvider::class,
    ],
```

生成配置文件

`php artisan vendor:publish`

设置推送信息的参数 config/pushers.php

调用
--

[](#调用)

修改config/pushers.php对应的配置

```
