Skip to content
NodePush PHP client
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
src/Bazo/PHPusher
.gitignore
composer.json
license.txt
readme.md

readme.md

PHPusher

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();
Something went wrong with that request. Please try again.