bazo/phpusher

PHP push client for nodepush

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

This package is not auto-updated.

Last update: 2021-12-06 00:36:37 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();