2017 © Pedro Peláez
 

library growl

A simple Growl notifier for PHP5.3

image

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

The README.md

Growl notifier Build Status

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);

The Versions

02/08 2012

dev-master

9999999-dev

A simple Growl notifier for PHP5.3

  Sources   Download

MIT

02/08 2012

v0.1

0.1.0.0

A simple Growl notifier for PHP5.3

  Sources   Download

MIT