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)
```

###  Alternatives

[bmitch/churn-php

Discover files in need of refactoring.

1.4k1.5M12](/packages/bmitch-churn-php)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[frosh/shopware-rector

Shopware specific Rector

47394.3k5](/packages/frosh-shopware-rector)[php-parallel-lint/php-var-dump-check

Find forgotten variables dump in PHP source code.

211.5M31](/packages/php-parallel-lint-php-var-dump-check)[sop/crypto-types

A PHP library of various ASN.1 types for cryptographic applications.

111.4M33](/packages/sop-crypto-types)[bornfreee/tactician-domain-events

A Plugin for Tactician command bus library to work with the recorded Domain Events

25193.2k1](/packages/bornfreee-tactician-domain-events)

PHPackages © 2026

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