PHPackages                             riverslei/baidu-pusher - 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. riverslei/baidu-pusher

ActiveLibrary

riverslei/baidu-pusher
======================

在laravel5中基于百度php sdk v3.0.0开发的消息推送。

v1.0.2(10y ago)2214.4k—9.1%9MITPHPPHP &gt;=5.5.9

Since Jul 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/helei112g/baidu-pusher)[ Packagist](https://packagist.org/packages/riverslei/baidu-pusher)[ RSS](/packages/riverslei-baidu-pusher/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

概述
==

[](#概述)

- baidu push sdk: 3.0.0
- laravel: 5.1.\*
- php &gt; 5.5.9

更新日志
====

[](#更新日志)

- 2015/07/16 修改BaseSDK文件中的异常
- 2015/08/03 初始百度推送时，设置相关参数

安装
==

[](#安装)

- 在composer.json中配置

```
    "require": {
        "riverslei/baidu-pusher": "~1.0"
    },

```

- 执行 `composer update`
- 安装完成后，在 `config\app.php` 中设置服务提供者

```
'providers' => [
  Riverslei\Pusher\PusherServiceProvider::class,
  ...
]
```

在 `config\app.php` 中设置 `facade`

```
'aliases' => [
  ...
  'Pusher'    => Riverslei\Pusher\Pusher::class,
]
```

- 生成相关的配置文件 `php artisan vendor:publish --provider=Riverslei\Pusher\PusherServiceProvider`

测试
==

[](#测试)

为了检测安装的结果是否可正常使用。可用一下代码进行测试

配置路由：

```
Route::get('/pusher', 'TestController@pusher');
```

生成控制器及相应方法

```
