Skip to content

jamiebicknell/Growl-GNTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.