This library serves as Uniqush client for PHP.
<?php
use \DeSmart\Uniqush\Client;
use \DeSmart\Uniqush\Request\PushRequest;
use \DeSmart\Uniqush\Request\Message;
$message = new Message('It is example message.');
$request = new PushRequest('myService', ['alice', 'bob'], $message);
$client = new \DeSmart\Uniqush\Client('http://uniqush.on.some.serv.er');
$client->send($request);
Currently there's none. If needed please make PR.
Client
is just a wrapper for sending RequestInterface
objects. Message is represented by Message
object.
Requests define actions which can be done using Uniqush. Currently are implemented only those requests which we needed to use.
This library is under MIT License.