bazo/phpusher

PHP push client for nodepush

v1.1.0 2013-07-05 19:08 UTC

This package is not auto-updated.

Last update: 2024-10-21 13:41:20 UTC


README

NodePush PHP client. Push client for NodePush https://github.com/bazo/NodePush

Usage:

$pushClient = new Bazo\PHPusher\PushClient('http://localhost:8080');
$data = [
	'id' => 1,
	'timestamp' => time(),
	'message' => 'lorem ipsum'
];

$pushClient->open();
$pushClient->push($room, $event, $data);
$pushClient->close();