vdbf / pushover-php
There is no license information available for the latest version (0.0.2) of this package.
0.0.2
2014-11-05 23:54 UTC
Requires
- guzzlehttp/guzzle: 5.0.3
- illuminate/support: 4.2.9
Requires (Dev)
- mockery/mockery: 0.9.2
- phpunit/phpunit: 4.3.4
This package is not auto-updated.
Last update: 2024-12-17 10:03:41 UTC
README
Pushover REST API implementation in PHP
##Installation
All you have to do is execute: composer require vdbf/pushover-php 0.0.2
Alternatively, you can edit composer.json
and add the following entry to the require section:
'vdbf/pushover-php' : '0.0.2'
##Example usage
require dirname(__DIR__) . '/vendor/autoload.php'; //setup pushover client $pusher = new \Vdbf\Pushover\Client(array('token' => $argv[1]), new \GuzzleHttp\Client()); //compose a message $message = new \Vdbf\Pushover\Message($argv[2], $argv[3]); //push a message $pusher->send($message);
Integration
At the moment of writing, integration for Laravel 4.* is supported. A service provider and a facade class are supplied. Installation is done in 2 simple steps after the general installation steps:
- edit
app/config/app.php
to add the service provider and the facade class
'providers' => array(
...
'Vdbf\Pushover\Support\Laravel\PushoverProvider'
)
'aliases' => array(
...
'Pushover' => 'Vdbf\Pushover\Support\Laravel\PushoverFacade'
)
- edit
app/config/services.php
(supplied by default from L4.2) to add atoken
setting
'pushover' => array(
'token' => YOUR_PUSHOVER_APP_TOKEN
)