Skip to content

mcraz/php5-pushover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

No cURL Library for Pushover

Also works on Google App Engine This is a wrapper over the API provided by Pushover to send push notification from your application to Andoid & iOS devices. You can check out [full API documentation] (https://pushover.net/api)

To get started, check out https://pushover.net/!

Quick start

Three quick start options are available:

How to use ?

User/Group Validation Example

require dirname(__FILE__).'/pushover.class.php';

$pushover = new pushover(array('apiToken' => 'XXxXX'));

if($pushover->validate("userORgroupKEY"))
	echo "User/Group is Valid";
else
	echo "User/Group is InValid";

Notification Sending Example

require dirname(__FILE__).'/pushover.class.php';

$pushover = new pushover(array('apiToken' => 'XXxXX'));

$user = "xxxXXXxxx_PUT-YOUR-USER/GROUP-KEY-HERE_xxxXXXxxx";
$message = "Checkout this awesome php5 api for Pushover that doen't even require cURL !";

print_r($pushover->notify($user,$message,$option));

Check out the sample.php file for sample codes.

License

The code is licensed under WTFPL. Get a copy for yourself here.

About

PHP library for sending Android/iPhone notification via Pushover (https://pushover.net)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages