dev-master
9999999-dev
The Requires
The Development Requires
0.0.2
0.0.2.0
The Requires
The Development Requires
0.0.1
0.0.1.0
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Pushover REST API implementation in PHP, (*1)
All you have to do is execute: composer require vdbf/pushover-php 0.0.2, (*2)
Alternatively, you can edit composer.json and add the following entry to the require section:, (*3)
'vdbf/pushover-php' : '0.0.2'
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);
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:, (*4)
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'
)
app/config/services.php (supplied by default from L4.2) to add a token setting 'pushover' => array(
'token' => YOUR_PUSHOVER_APP_TOKEN
)