Skip to content

vuongxuongminh/yii2-desktop-notifier

Repository files navigation

Yii2 Desktop Notifier

Latest Stable Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality Yii2

About it

An extension support send desktop notify base on JoliNotif wrapper for Yii2 console controller. Works on Linux, Windows & MacOS.

Requirements

Installation

Require Yii2 desktop notifier using Composer:

composer require vxm/yii2-desktop-notifier

Usage

use yii\console\Controller;

/**
 * @method void desktopNotify(string $title, string $body, $icon = null)
 */
class TestController extends Controller
{
    public function actionTest()
    {
        $this->desktopNotify('VXM', 'test message');
    }
}