clicksco/pushover

A simple library to interact with the Pushover.com API


Keywords
notifications, laravel, push, pushover

Documentation

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