gofmanaa / yii2-notification
Notification module
Package info
github.com/gofmanaa/yii2-notification
Type:yii2-extension
pkg:composer/gofmanaa/yii2-notification
dev-master
2015-12-10 14:54 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-19 00:38:26 UTC
README
Notification module
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist gofmanaa/yii2-notification "*"
or add
"gofmanaa/yii2-notification": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \gofmanaa\notification\models\Notification::push('Event message',Notification::TYPE_DEFAULT); ?>
Put to header menu:
\gofmanaa\notification\widgets\NotificationWidget::widget();