iakio / gntp-notify
Simple GNTP notification library
Installs: 430
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/iakio/gntp-notify
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-09-27 22:12:22 UTC
README
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