2017 © Pedro Peláez
 

library pushover

A client to send messages through Pushover

image

brunty/pushover

A client to send messages through Pushover

  • Tuesday, September 12, 2017
  • by Brunty
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pushover Client

Build Status, (*1)

❗️ Provides functionality to send messages via Pushover, (*2)

Requirements

  • PHP >= 7.1

Installation

composer require brunty/pushover, (*3)

You will also need to require your adapter of choice http://docs.php-http.org/en/latest/clients.html, (*4)

Usage

As per the Pushover API Documentation - user and token form your credentials., (*5)

Messages are made up of a message body and a title in a Brunty\Pushover\Message object., (*6)

Optionally you can specify a device to send the message to as well, if you don't specify this, it'll send to all devices., (*7)

<?php
use Brunty\Pushover\Client;
use Brunty\Pushover\Credentials;
use Brunty\Pushover\Message;
use Http\Mock\Client as MockClient;

// Mock client here wouldn't send a request, it's used for testing
// substitute with your own real client from the adapters above
$client = new Client(new MockClient, new Credentials('user', 'token'));
$client->pushMessage(new Message('message', 'optional title'), 'optional device');

The following are not (yet) supported, but will be in the near future:, (*8)

  • url
  • url_title
  • priority
  • timestamp
  • sound

Contributing

This started as a small personal project., (*9)

Although this project is small, openness and inclusivity are taken seriously. To that end a code of conduct (listed in the contributing guide) has been adopted., (*10)

Contributor Guide, (*11)

The Versions

12/09 2017

dev-master

9999999-dev

A client to send messages through Pushover

  Sources   Download

MIT

The Requires

 

The Development Requires