PHPackages                             awshal/yii2-bootstrap-notify - 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. awshal/yii2-bootstrap-notify

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

awshal/yii2-bootstrap-notify
============================

Alert widget based on Bootstrap Notify extension {@link http://bootstrap-notify.remabledesigns.com/)

010.5kPHP

Since Apr 17Pushed 2y agoCompare

[ Source](https://github.com/AWSHAL/yii2-bootstrap-notify)[ Packagist](https://packagist.org/packages/awshal/yii2-bootstrap-notify)[ RSS](/packages/awshal-yii2-bootstrap-notify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Notify Widget
==================

[](#yii2-notify-widget)

Notify widget based on [Bootstrap Notify](http://bootstrap-notify.remabledesigns.com/)

[![Latest Stable Version](https://camo.githubusercontent.com/f7efd96058adc9687b94b63f814aca3163760857bdfdd8ae9d8650a6bda4bd14/68747470733a2f2f706f7365722e707567782e6f72672f61777368616c2f796969322d626f6f7473747261702d6e6f746966792f762f737461626c65)](https://packagist.org/packages/awshal/yii2-bootstrap-notify)[![Total Downloads](https://camo.githubusercontent.com/0c5d0b5b6c331c6f684468d67f19ae0c2117b81ff0315d3642707e7e3247e3a4/68747470733a2f2f706f7365722e707567782e6f72672f61777368616c2f796969322d626f6f7473747261702d6e6f746966792f646f776e6c6f616473)](https://packagist.org/packages/awshal/yii2-bootstrap-notify)[![License](https://camo.githubusercontent.com/ba03bca9f685e28ccca3674b15e8ba84e8ecafc999f1ca8e7b8913bb9656ff3e/68747470733a2f2f706f7365722e707567782e6f72672f61777368616c2f796969322d626f6f7473747261702d6e6f746966792f6c6963656e7365)](https://packagist.org/packages/awshal/yii2-bootstrap-notify)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist awshal/yii2-bootstrap-notify "*"

```

or add

```
"yii2mod/yii2-bootstrap-notify": "*"

```

to the require section of your composer.json.

Usage
-----

[](#usage)

Alert widget renders a message from session flash. All flash messages are displayed in the sequence they were assigned using setFlash. You can set message as following:

1. Set the message in your action, for example:

```
Yii::$app->session->setFlash('success', 'This is the message');
Yii::$app->session->setFlash('info', 'Your message');
Yii::$app->session->setFlash('warning', 'Your message');
Yii::$app->session->setFlash('error', 'Your message');
```

Also, you can set multiple messages as follows:

```
Yii::$app->session->setFlash('error', ['Error 1', 'Error 2']);
```

2. Simply add widget to your layout as follows:

```

```

**You can render your own message without the session flash as following:**

```

```

Alert Options
-------------

[](#alert-options)

You can find them on the [options page](http://bootstrap-notify.remabledesigns.com/)

Support us
----------

[](#support-us)

Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/yii2mod). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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/6cdcfc22095298af9d1aa2be51c38c80dec290c494f776942bc67471eb6b6ba2?d=identicon)[ramonotsu](/maintainers/ramonotsu)

---

Top Contributors

[![ramonotsu](https://avatars.githubusercontent.com/u/20354777?v=4)](https://github.com/ramonotsu "ramonotsu (7 commits)")

### Embed Badge

![Health badge](/badges/awshal-yii2-bootstrap-notify/health.svg)

```
[![Health](https://phpackages.com/badges/awshal-yii2-bootstrap-notify/health.svg)](https://phpackages.com/packages/awshal-yii2-bootstrap-notify)
```

PHPackages © 2026

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