simialbi / yii2-widget-growl
A widget to generate growl based notifications
Installs: 112
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.3
- npm-asset/bootstrap4-notify: ^4.0.0
- simialbi/yii2-simialbi-base: >=0.13.1 <1.0 | ^1.0.0
- yiisoft/yii2: ^2.0.15
Requires (Dev)
- phpunit/phpunit: ^5.0.0
- yiisoft/yii2-bootstrap4: ^2.0.0
- yiisoft/yii2-coding-standards: ~2.0
Suggests
- rmrevin/yii2-fontawesome: Font awesome icons
- yiisoft/yii2-bootstrap: Bootstrap
- yiisoft/yii2-bootstrap4: Bootstrap 4
- yiisoft/yii2-bootstrap5: Bootstrap 5
README
A widget that turns standard Bootstrap alerts into "Growl-like" notifications. This widget is a wrapper for the Bootstrap Growl plugin by ciedooy.
This extension is a bootstrap 4 port of Kartik Visweswaran's great extension: yii2-widget-growl
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require --prefer-dist simialbi/yii2-widget-growl
or add
"simialbi/yii2-widget-growl": "*"
to the require
section of your composer.json
Usage
<?php use simialbi\yii2\growl\Growl; echo Growl::widget([ 'type' => Growl::TYPE_SUCCESS, 'icon' => 'fa fa-exclamation-triangle', 'title' => 'Note', 'body' => 'This is a successful growling alert.' ]);
Example Usage
License
yii2-widget-growl is released under MIT license. See bundled LICENSE for details.