aurimasniekis / pushover-client
A PSR-18/17 based Pushover.net client
1.0.0
2020-03-25 13:24 UTC
Requires
- php: ^7.4||^8.0
- ext-json: *
- php-http/multipart-stream-builder: ^1.1
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-25 23:47:57 UTC
README
A PSR-18/17 based www.pushover.net client for sending messages & glances;
Install
Via Composer
$ composer require aurimasniekis/pushover-client
Usage
<?php 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!'));
Testing
Run PHP style checker
$ composer cs-check
Run PHP style fixer
$ composer cs-fix
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.