omnilight / yii2-sweetalert
There is no license information available for the latest version (1.0.4) of this package.
SweetAlert asset for Yii2 framework
Package info
github.com/omnilight/yii2-sweetalert
Type:yii2-extension
pkg:composer/omnilight/yii2-sweetalert
1.0.4
2016-04-03 19:30 UTC
Requires
- php: >=5.4.0
- bower-asset/sweetalert: 1.1.*
- yiisoft/yii2: 2.0.*
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
SweetAlert asset for Yii2 framework
Install
The preferred way to install this extension is through composer.
Add composer dependence in composer.json
"omnilight/yii2-sweetalert": "1.0.*"
and run composer update
Usage
Just register SweetAlert asset in your view as:
use omnilight\assets\SweetAlertAsset;
SweetAlertAsset::register($this);
and you are ready to use SweetAlert JS code:
swal("Hello world!");
License
Extension is released under the MIT License. See the bundled LICENSE.md for details.