Yii 1.1: pusher

Simple Pusher Publisher (REST API)

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


Tested on Yii 1.1.10


  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
       'key'=>'{Your Pusher key}',
       'secret'=>'{Your Pusher secret}',
       'appId'=>'{Your application ID}',
// Controller
$pusher->trigger('messaging','newMessage',array('msg'=>'Ular melingkar dipagar bundar'));


Total 2 comments

#10267 report it
riaddiction at 2012/10/16 03:26am
Presence Channels

Thank you for this component, could you give an example about how to implement a Presence Channel Subscription with this component?

#8809 report it
bonnie at 2012/06/28 08:55pm

I want to use the chart example on pusher website can you give the head start. Thanks.

Leave a comment

Please to leave your comment.

Create extension