PHP code example of desmart / uniqush-client
1. Go to this page and download the library: Download desmart/uniqush-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
desmart / uniqush-client example snippets
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);