omnilight / yii2-sweetalert
SweetAlert asset for Yii2 framework
Installs: 10 815
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/sweetalert: 1.1.*
- yiisoft/yii2: 2.0.*
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.