vxm/yii2-desktop-notifier

Desktop notifier for Yii2

1.0.0 2019-04-10 17:31 UTC

This package is auto-updated.

Last update: 2024-04-17 04:42:40 UTC


README

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

demo.png

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