PHPackages                             omnilight/yii2-sweetalert - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. omnilight/yii2-sweetalert

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

omnilight/yii2-sweetalert
=========================

SweetAlert asset for Yii2 framework

1.0.4(10y ago)411.0k2PHPPHP &gt;=5.4.0

Since Mar 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/omnilight/yii2-sweetalert)[ Packagist](https://packagist.org/packages/omnilight/yii2-sweetalert)[ RSS](/packages/omnilight-yii2-sweetalert/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

yii2-sweetalert
===============

[](#yii2-sweetalert)

SweetAlert asset for Yii2 framework

Install
=======

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Add composer dependence in composer.json

```
"omnilight/yii2-sweetalert": "1.0.*"

```

and run composer update

Usage
=====

[](#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
-------

[](#license)

Extension is released under the MIT License. See the bundled `LICENSE.md` for details.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Total

5

Last Release

3744d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dd587176cd9b14be73e1ccba507b3fc44f5cc8008ffd073d32bbb8c3a7fda04?d=identicon)[omnilight](/maintainers/omnilight)

---

Top Contributors

[![serieznyi](https://avatars.githubusercontent.com/u/2323142?v=4)](https://github.com/serieznyi "serieznyi (6 commits)")[![omnilight](https://avatars.githubusercontent.com/u/3306537?v=4)](https://github.com/omnilight "omnilight (5 commits)")[![joshijitendra](https://avatars.githubusercontent.com/u/304748?v=4)](https://github.com/joshijitendra "joshijitendra (1 commits)")

---

Tags

yii2sweetalert

### Embed Badge

![Health badge](/badges/omnilight-yii2-sweetalert/health.svg)

```
[![Health](https://phpackages.com/badges/omnilight-yii2-sweetalert/health.svg)](https://phpackages.com/packages/omnilight-yii2-sweetalert)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[yii2mod/yii2-sweet-alert

Alert widget based on SweetAlert extension {@link http://tristanedwards.me/sweetalert)

43157.8k2](/packages/yii2mod-yii2-sweet-alert)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
