PHPackages                             c006/yii2-alerts - 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. c006/yii2-alerts

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

c006/yii2-alerts
================

Display simple alert message(s) on page

v2.1(8y ago)01.5k2MITPHP

Since Aug 21Pushed 6y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Yii2 Alerts
===========

[](#yii2-alerts)

**Updated: August, 2015**

- Added scss and css files to set your own colors

Installation
------------

[](#installation)

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

Either run

`php composer.phar require --prefer-source "c006/yii2-alerts" "dev-master"`

or add

`"c006/yii2-alerts": "dev-master"`

to the require section of your `composer.json` file.

Required
--------

[](#required)

- ***jQuery***
- **yii \\ widgets \\ Bootstrap**

Options
-------

[](#options)

**message =&gt;** {string}
`Alert message (HTML)`

**alert\_type =&gt;** {string}

- Alerts::ALERT\_DANGER
- Alerts::ALERT\_WARNING
- Alerts::ALERT\_INFO
- Alerts::ALERT\_SUCCESS

**close =&gt;** {boolean}
`Show close link for alert`

**countdown =&gt;** {int}
`Automatically remove alert in X seconds`

Demo
----

[](#demo)

Demo:

Usage
-----

[](#usage)

Set message

>

```
Alerts::setMessage('Session Timeout');
Alerts::setAlertType(Alerts::ALERT_WARNING);
Alerts::setCountdown(10); /* optional */

```

Display message

>

```

```

Comments / Suggestions
----------------------

[](#comments--suggestions)

Please provide any helpful feedback or requests.

Thanks.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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 ~380 days

Total

3

Last Release

3254d ago

Major Versions

v1.0.0 → v2.02017-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff517e38ea52ce9dd5513ae752ff0af57e315d8b8046edccb987e6a277e3a5e0?d=identicon)[c006](/maintainers/c006)

---

Top Contributors

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

---

Tags

yii2extensionwidgetsalert

### Embed Badge

![Health badge](/badges/c006-yii2-alerts/health.svg)

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

###  Alternatives

[kartik-v/yii2-dialog

An asset bundle for bootstrap3-dialog for Yii 2.0 framework.

526.6M20](/packages/kartik-v-yii2-dialog)

PHPackages © 2026

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