PHP code example of redjanym / pushover-php
1. Go to this page and download the library: Download redjanym/pushover-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
redjanym / pushover-php example snippets
$pushOver = new Pushover("YOUR_APP_TOKEN", "YOUR_USER_KEY");
$pushOver
->setTitle("Test title")
->setMessage('Test message')
;
$pushOver->send();
var_dump($pushOver->getResponse());
$pushOver = $this->get("app.redjanym_pushover");
$pushOver
->setTitle("Test title")
->setMessage('Test message')
;
$pushOver->send();
var_dump($pushOver->getResponse());
bash
composer
Pushover.php
config.php