yii2-new-pusher pusher

yii2-new-pusher A Yii2 extension for Pusher.com

This is an extension for Yii2 that makes it easy to use Pusher.

Add it to the composer file:

"require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": "*",
    "yiisoft/yii2-bootstrap": "*",
    "yiisoft/yii2-swiftmailer": "*",
  	"asepindra/yii2-new-pusher": "*",

You can configure it in your application `components ` configuration like so:

'pusher' => [
    'class'     => 'asepindra\pusher\Pusher',
    //Mandatory parameters
    'appId'     => 'YOUR_APP_ID',
    'appKey'    => 'YOUR_APP_KEY',
    'appsecret' => 'YOUR_APP_SECRET',
    //Optional parameter
    'options'   => ['encrypted' => true]

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->trigger( 'my-channel', 'my_event', 'hello world' );

This extension is a wrapper for pusher-http-php

0 0
1 follower
Yii Version: 2.0.*
License: BSD-3-Clause
Category: Others
Tags: pusher
Developed by: asepindra
Created on: Apr 21, 2022
Last updated: 2 years ago
Github Repository

Related Extensions