PHPackages                             numbervine/yii2-sweetalert2 - 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. numbervine/yii2-sweetalert2

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

numbervine/yii2-sweetalert2
===========================

A wrapper to include sweetalert2 assets in yii2 application

v1.0.1(8y ago)054MITPHP

Since Dec 20Pushed 8y agoCompare

[ Source](https://github.com/numbervine/yii2-sweetalert2)[ Packagist](https://packagist.org/packages/numbervine/yii2-sweetalert2)[ RSS](/packages/numbervine-yii2-sweetalert2/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

yii2-sweetalert2
================

[](#yii2-sweetalert2)

Yii2 wrapper for SweetAlert2 assets

How to install
--------------

[](#how-to-install)

Install this extension using composer by adding the following dependency in composer.json

```
    "numbervine/yii2-sweetalert2":"*"
```

How to use
----------

[](#how-to-use)

```
use numbervine\sweetalert2\SweetAlert2Asset;

SweetAlert2Asset::register($this);
```

use in Javascript as per SweetAlert2 docs

```
swal("Hello!");
```

LICENSE
-------

[](#license)

MIT © \[Thomas Varghese\] ()

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3114d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33904363?v=4)[Thomas Varghese](/maintainers/numbervine)[@numbervine](https://github.com/numbervine)

---

Top Contributors

[![numbervine](https://avatars.githubusercontent.com/u/33904363?v=4)](https://github.com/numbervine "numbervine (1 commits)")

---

Tags

wrapperyii2sweetalert2

### Embed Badge

![Health badge](/badges/numbervine-yii2-sweetalert2/health.svg)

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

###  Alternatives

[dominus77/yii2-sweetalert2-widget

Renders a SweetAlert2 widget for Yii2.

2072.4k1](/packages/dominus77-yii2-sweetalert2-widget)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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