jamesmills / pushover by mcraz

A simple library to interact with the Pushover.com API
13
1
2
Package Data
Maintainer Username: mcraz
Maintainer Contact: james@clicksco.com (James Mills)
Package Create Date: 2013-10-20
Package Last Update: 2013-10-28
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 03:14:18
Package Statistics
Total Downloads: 13
Monthly Downloads: 4
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 1

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();