PHP code example of aurimasniekis / pushover-client
1. Go to this page and download the library: Download aurimasniekis/pushover-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/ */
aurimasniekis / pushover-client example snippets
use Buzz\Client\Curl;
use Nyholm\Psr7\Factory\Psr17Factory;
use AurimasNiekis\PushoverClient\Client;
use AurimasNiekis\PushoverClient\Message;
$factory = new Psr17Factory();
$httpClient = new Curl($factory);
$client = new Client($httpClient, $factory, $factory, 'app-token', 'user-token');
$client->sendMessage(new Message('Hello World!'));