omnilight/yii2-sweetalert

There is no license information available for the latest version (1.0.4) of this package.

SweetAlert asset for Yii2 framework

Installs: 10 712

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.0.4 2016-04-03 19:30 UTC

This package is auto-updated.

Last update: 2024-04-16 04:09:22 UTC


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.