pusher Simple Pusher Publisher (REST API)

  1. Requirements
  2. Usage
  3. Resources

Pusher is a hosted API for quickly, easily and securely adding scalable realtime functionality to web and mobile apps.

Requirements

Tested on Yii 1.1.10

Usage

  1. Sign up to Pusher.com.
  2. Extract the downloaded file, copy Pusher.php to your components application directory.
  3. Add & adjust your config/main.php components and test it.
// Configuration

     'pusher'=>array(
       'class'=>'Pusher',
       'key'=>'{Your Pusher key}',
       'secret'=>'{Your Pusher secret}',
       'appId'=>'{Your application ID}',
     ),

// Controller
$pusher=Yii::app()->pusher;
$pusher->trigger('messaging','newMessage',array('msg'=>'Ular melingkar dipagar bundar'));

Resources

2 0
10 followers
765 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: nk913
Created on: Mar 15, 2012
Last updated: 6 years ago

Downloads

show all

Related Extensions