desmart / uniqush-client
Uniqush API Client
1.0.0
2015-06-01 07:59 UTC
Requires
- guzzle/guzzle: ~3.9
Requires (Dev)
- phpspec/phpspec: 2.1.*
- squizlabs/php_codesniffer: @stable
This package is auto-updated.
Last update: 2024-12-14 04:25:24 UTC
README
This library serves as Uniqush client for PHP.
Usage
<?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);
Debugging
Currently there's none. If needed please make PR.
Requests
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.
License
This library is under MIT License.