Based on Pusher PHP library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
config
vendor/Pusher
README.md
bootstrap.php

README.md

FuelPHP Pusher Package

This is based on the [https://github.com/squeeks/Pusher-PHP](Pusher PHP generic library).

How To Use It

  1. Place the directory inside fuel/packages

  2. Load the package by adding it to the 'Always Load Packages' in your app/config/config.php

<?php
'always_load'  => array(

	...

	'packages'  => array(
		//'orm'
		'pusherapp',
	),

	...
), ?>
  1. You can now load up an instance of Pusher with:
<?php
\Pusherapp::forge()->trigger('channel_name', 'event_name', 'data');
  1. Enable debugging mode by passing true to forge():
<?php
\Pusherapp::forge(true)->trigger('channel_name', 'event_name', 'data');