iakio/gntp-notify

Simple GNTP notification library

0.4.0 2015-10-10 06:00 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:57:22 UTC


README

Build Status

Simple GNTP notification library

Usage

<?php
$gntp = new GNTP();
$gntp->sendNotify("appname", "type", "title", "text", array('icon_file' => 'a.png'));
<?php
$gntp = new GNTP();
$register = new RegisterRequest("appname");
$register->addNotification("type1", array("icon_url" => "http://localhost/a.png");
$register->addNotification("type2", array("icon_file" => "b.png");
$notify = new NotificationRequest("appname", "type1", "title", array("text" => "text");

$gntp->notifyOrRegister($notify, $register);

Requirements

  • PHP >= 5.3.3

License

MIT

Links