ereminmdev / yii2-noty
This package is abandoned and no longer maintained.
The author suggests using the ereminmdev/yii2-notyf package instead.
Alternative confirmation messages for Yii framework.
v1.0.2
2025-05-29 07:42 UTC
Requires
- php: >=7.4
- needim/noty: ^3.1
- yiisoft/yii2: ~2.0.1
README
Alternative alert - success - error - warning - information - confirmation messages for Yii framework.
Based on JavaScript library: https://ned.im/noty/#/
Install
composer require --prefer-dist ereminmdev/yii2-noty
Documentation
See for clientOptions: https://ned.im/noty/#/options
Use
Insert widget into view:
<?= \ereminmdev\yii2\noty\NotyWidget::widget([
'text' => 'Some text...',
]); ?>
or with more options:
<?= \ereminmdev\yii2\noty\NotyWidget::widget([
'text' => 'Some text...',
'type' => 'alert',
'layout' => 'topRight',
'theme' => 'bootstrap-v3',
'clientOptions' => [
...
],
]); ?>
See all client options: https://ned.im/noty/#/options