clicksco/pushover

There is no license information available for the latest version (1.0.0) of this package.

A simple library to interact with the Pushover.com API

1.0.0 2013-10-28 08:16 UTC

This package is not auto-updated.

Last update: 2024-11-19 06:04:34 UTC


README

Build Status

Requirements

Once you've been registered and after having installed the mobile application, click this link to create your own API application and get back your personal token/key.

Example

<?php

use Clicksco\Pushover\PushMessage;
use Clicksco\Pushover\PushManager;

$push_message = new PushMessage;
$push_message->setTitle('This is the title');
$push_message->setDate(new \DateTime());
$push_message->setMessage('This is the message');

$push_manager = new PushManager('YOUR-APP-TOKEN');

$push_manager->setMessage($push_message);
$push_manager->addUser('YOUR-USER-TOKEN');
echo $push_manager->send();