library growl
A simple Growl notifier for PHP5.3
madalynn/growl
A simple Growl notifier for PHP5.3
- Thursday, August 2, 2012
- by Aerialls
- Repository
- 2 Watchers
- 8 Stars
- 553 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Growl notifier
This library is a simple Growl notifier for PHP5.3, (*1)
Installation via Composer
The recommended way to install it is through composer., (*2)
{
"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);
dev-master
9999999-dev
A simple Growl notifier for PHP5.3
Sources
Download
MIT