php-pushover, a PHP class for sending push notifications to iOS & Android

So I’ve been using Notifo for a while now and I must say, lovely service. Unfortunately, they will be closing down..

In my quest for a new push notification provider, I stumbled upon Pushover.
Pushover is by far the only service that can deliver (free) push notifications to both iOS and Android platforms, with a simple API, and a lot of cool options. Even authentication is very easy (not like Prowl). Have a look at their api docs.

Here’s the php class I wrote for Pushover:
https://github.com/kryap/php-pushover/blob/master/Pushover.php

And here’s how you use it:

<?php 
include('Pushover.php');
 
$push = new Pushover();
$push->setToken('app token goes here');
$push->setUser('user token goes here');
 
$push->setTitle('Hey Chris');
$push->setMessage('Hello world! ' .time());
$push->setUrl('http://chris.schalenborgh.be/blog/');
$push->setUrlTitle('cool php blog');
 
$push->setDevice('iPhone');
$push->setPriority(0);
$push->setTimestamp(time());
$push->setDebug(false);
 
$go = $push->send();
?>

Good luck! And let me know which cool projects you used this for! 🙂

Freelance webdeveloper & Entreprenerd Specialized in developing, scaling and optimizing of succesful web applications, community websites and small/corporate business websites using technologies such as PHP 5, Laravel, HTML5, jQuery, .. Trying to find optimal Google love for every website. I'm always interested and open for new business opportunities.

1 Comments

  1. Pingback: PushControl : Gratis meldingen van politiecontroles op je gsm

Leave a Reply

Your email address will not be published. Required fields are marked *