PHPackages                             light/yii2-widget-sweet-alert - 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. light/yii2-widget-sweet-alert

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

light/yii2-widget-sweet-alert
=============================

Yii2 widget for sweet-alert

11521[1 issues](https://github.com/lxpgw/yii2-widget-sweet-alert/issues)JavaScript

Since Jan 26Pushed 11y ago2 watchersCompare

[ Source](https://github.com/lxpgw/yii2-widget-sweet-alert)[ Packagist](https://packagist.org/packages/light/yii2-widget-sweet-alert)[ RSS](/packages/light-yii2-widget-sweet-alert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-widget-sweet-alert
-----------------------

[](#yii2-widget-sweet-alert)

Yii2 widget wrapper for sweet-alert

Install
-------

[](#install)

```
composer require light/yii2-widget-sweet-alert=dev-master

```

Usage
-----

[](#usage)

```
use light\widgets\SweetAlert;

SweetAlert::widget([
	'title' => 'hello',
	'text' => 'this is discription for alert',
	....
]);

```

Options
-------

[](#options)

Pls see the document of [sweet-alert](http://tristanedwards.me/sweetalert)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (5 commits)")

### Embed Badge

![Health badge](/badges/light-yii2-widget-sweet-alert/health.svg)

```
[![Health](https://phpackages.com/badges/light-yii2-widget-sweet-alert/health.svg)](https://phpackages.com/packages/light-yii2-widget-sweet-alert)
```

PHPackages © 2026

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