This is based on the [https://github.com/squeeks/Pusher-PHP](Pusher PHP generic library).
-
Place the directory inside fuel/packages
-
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',
),
...
), ?>
- You can now load up an instance of Pusher with:
<?php
\Pusherapp::forge()->trigger('channel_name', 'event_name', 'data');
- Enable debugging mode by passing
true
toforge()
:
<?php
\Pusherapp::forge(true)->trigger('channel_name', 'event_name', 'data');