bazo / phpusher
PHP push client for nodepush
Installs: 1 565
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- bazo/tembo: @dev
This package is not auto-updated.
Last update: 2024-11-18 13:59:40 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();