Awesome Open Source
Awesome Open Source

Growl GNTP PHP Class

Small and lightweight PHP class for sending notifications to Growl via GNTP.

Example Usage

include 'growl.gntp.php';

$growl = new Growl('IP Address or Hostname', 'optional-password');
$growl->setApplication('Application Name', 'Notification Name');

// Only need to use the following method on first use or change of icon
$growl->registerApplication('http://dummyimage.com/100/');

// Basic Notification
$growl->notify('Title', 'Content goes here!');
    
// Notification with Image
$growl->notify('Title', 'Content goes here!', 'http://dummyimage.com/100/');
    
// Notification with Image and Link
$growl->notify('Title', 'Content goes here!', 'http://dummyimage.com/100/', 'http://google.com');

Port Forwarding

GNTP runs on TCP port 23053, so you are required to set up port forwarding so that incoming notifications are sent to the computer you have Growl installed on.

Information

##License

Growl GNTP PHP Class is licensed under the MIT license, see LICENSE.md for details.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
php (15,954

Find Open Source By Browsing 7,000 Topics Across 59 Categories