Skip to content

DeSmart/uniqush-client

Repository files navigation

Uniqush-client

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.

About

PHP client for sending push messages via Uniqush

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages