Let’s work together

Feel free to send me an email at chris@schalenborgh.be

Research Campus 18
3500 Hasselt
Belgium

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


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-&gt;setUser('user token goes here');
 
$push-&gt;setTitle('Hey Chris');
$push-&gt;setMessage('Hello world! ' .time());
$push-&gt;setUrl('https://chris.schalenborgh.be/blog/');
$push-&gt;setUrlTitle('cool php blog');
 
$push-&gt;setDevice('iPhone');
$push-&gt;setPriority(0);
$push-&gt;setTimestamp(time());
$push-&gt;setDebug(false);
 
$go = $push-&gt;send();
?&gt;

Good luck! And let me know which cool projects you used this for! πŸ™‚