br0sk/yii2-pusher Yii2 wrapper for Pusher

realtimepusher.com

yii2-pusher

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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of 2 releases



BSD-3-Clause license
Stats
5 github stars & 1 github forks
10 downloads in the last day
330 downloads in the last 30 days
11997 total downloads