ampersa / pushover
Library for communicating with Pushover API fluently
0.2
2017-02-07 09:52 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: 6.*
This package is auto-updated.
Last update: 2024-10-19 19:43:16 UTC
README
Version 0.2
Example:
$client = new Pushover;
$response = $client->title('Testing')
->message('Just a quick test of <b>Ampersa\Pushover</b>')
->sound('cashregister')
->priority(Pushover::PRIORITY_EMERGENCY)
->retry(30)
->expires(600)
->html(true)
->url('https://www.google.com', 'Google')
->user('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
->send();
var_export($response);
will result in a truth-y response:
stdClass::__set_state(array(
'receipt' => '000000000000000000000000000000',
'status' => 1,
'request' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
))