gudezi / yii2-notifications-widget
list notifications widgets
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-02 03:32:34 UTC
README
notifications-widget
list notifications widgets
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist gudezi/yii2-notifications-widget "*"
or add
"gudezi/yii2-notifications-widget": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
// Example of data. $data = [ ['url' => '', 'user' => 'Equipo de soporte','image' => '','time' => '5 min','message' => 'Make Deploy?'], ['url' => '', 'user' => 'Equipo de Desarrollo','image' => '','time' => '6 min','message' => 'Make Deploy?'] ]; <?= gudezi\notifications\NotificationsWidget::widget( [ 'options' => ['class' => 'sidebar-menu'], 'items' => $itemsMessage, 'directoryAsset' =>$directoryAsset, 'type' => gudezi\notifications\NotificationsWidget::TYPE_MESSAGE, ] ) ?>```