https://github.com/vuongxuongminh/yii2-desktop-notifier
Support send desktop notify for Yii2 console controllers.
https://github.com/vuongxuongminh/yii2-desktop-notifier
desktop-notifications desktop-notifier yii2-desktop-notifier yii2-extension
Last synced: 4 months ago
JSON representation
Support send desktop notify for Yii2 console controllers.
- Host: GitHub
- URL: https://github.com/vuongxuongminh/yii2-desktop-notifier
- Owner: vuongxuongminh
- License: bsd-3-clause
- Created: 2019-04-10T16:40:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T17:08:47.000Z (over 6 years ago)
- Last Synced: 2025-06-14T17:48:05.882Z (4 months ago)
- Topics: desktop-notifications, desktop-notifier, yii2-desktop-notifier, yii2-extension
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2 Desktop Notifier
[](https://packagist.org/packages/vxm/yii2-desktop-notifier)
[](https://packagist.org/packages/vxm/yii2-desktop-notifier)
[](https://travis-ci.org/vuongxuongminh/yii2-desktop-notifier)
[](https://scrutinizer-ci.com/g/vuongxuongminh/yii2-desktop-notifier/?branch=master)
[](https://scrutinizer-ci.com/g/vuongxuongminh/yii2-desktop-notifier/?branch=master)
[](http://www.yiiframework.com/)## About it
An extension support send desktop notify base on [JoliNotif](https://github.com/jolicode/JoliNotif) wrapper for Yii2 console controller. Works on Linux, Windows & MacOS.
## Requirements
* [PHP >= 7.1](http://php.net)
* [yiisoft/yii2 >= 2.0.13](https://github.com/yiisoft/yii2)## Installation
Require Yii2 desktop notifier using [Composer](https://getcomposer.org):
```bash
composer require vxm/yii2-desktop-notifier
```## Usage
![]()
```php
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');
}
}
```