madalynn / growl
A simple Growl notifier for PHP5.3
Installs: 570
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 0
pkg:composer/madalynn/growl
This package is not auto-updated.
Last update: 2025-10-25 19:30:03 UTC
README
This library is a simple Growl notifier for PHP5.3
Installation via Composer
The recommended way to install it is through composer.
{
"require": {
"madalynn/growl": "dev-master"
}
}
Example
<?php $growl = new Madalynn\Growl\Growl('My application'); // Create a new notification type for the application $notification = new Madalynn\Growl\Notification\Type('Foobar'); $notification->setIcon('http://foobar.com/myicon.png'); $notification->setDisplayName('Foobar notification type'); $growl->addNotificationType($notification); // Create a new message for this type $message = $notification->create('Title', 'Message'); $message->setSticky(true); $message->setPriority(Madalynn\Growl\Notification\Message::PRIORITY_MODERATE); // Send the message $growl->sendNotify($message);