Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Last active December 3, 2015 08:33
Show Gist options
  • Save khoand0000/1e9441c60b482c7478d4 to your computer and use it in GitHub Desktop.
Save khoand0000/1e9441c60b482c7478d4 to your computer and use it in GitHub Desktop.
How to use pusher
<?php
/**
* Author: videde
* Date: 9/13/13
* Time: 2:26 AM
*/
require('Pusher.php');
$app_id = '';
$app_key = '';
$app_secret = '';
$pusher = new Pusher($app_key, $app_secret, $app_id);
$pusher->trigger('my-channel', 'my-event', array('message' => 'hello world from php') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment