aurimasniekis/pushover-client

A PSR-18/17 based Pushover.net client

1.0.0 2020-03-25 13:24 UTC

This package is auto-updated.

Last update: 2024-11-25 23:47:57 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

Email

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.