Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple PHP5.3 library for sending Growl notifications using GNTP
branch: master
Failed to load latest commit information.
src/Madalynn/Growl added tests
tests added tests
.gitignore initial commit
.travis.yml removed travis php5.3.3 version
LICENSE added license file
README.md added travis icon
composer.json initial commit
phpunit.xml.dist added tests

README.md

Growl notifier Build Status

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);
Something went wrong with that request. Please try again.