madalynn/growl
Composer 安装命令:
composer require madalynn/growl
包简介
A simple Growl notifier for PHP5.3
README 文档
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);
统计信息
- 总下载量: 570
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-06-16