br0sk/yii2-pusher
最新稳定版本:1.0.0
Composer 安装命令:
composer require br0sk/yii2-pusher
包简介
Yii2 wrapper for Pusher
关键字:
README 文档
README
A Yii2 extension for Pusher.com
This is an extension for Yii2 that makes it easy to use Pusher.
You can configure it in your application components configuration like so:
'pusher' => [
'class' => 'br0sk\pusher\Pusher',
/*
* Mandatory parameters.
*/
'appId' => 'YOUR_APP_ID',
'appKey' => 'YOUR_APP_KEY',
'appSecret' => 'YOUR_APP_SECRET',
/*
* Optional parameters.
*/
'options' => ['encrypted' => true, 'cluster' => 'YOUR_APP_CLUSTER']
],
note: Find the configuration details in your account by clicking on the app you want to use.
An example of typical usage:
Yii::$app->pusher->push('my-channel', 'my_event', 'hello world');
This extension is a wrapper for pusher-http-php
统计信息
- 总下载量: 24.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-11-15