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

ActiveYii2-extension

yii2mod/yii2-bootstrap-notify
=============================

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

1.2(9y ago)1562.7k↓38.9%54MITPHP

Since Aug 29Pushed 6y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (4)Used By (4)

 [ ![](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/afc053fbf45290f6f0a08be31dd327222ef22cbec0fc6d3ee1e562dd91bfc09d/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d626f6f7473747261702d6e6f746966792f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-bootstrap-notify)[![Total Downloads](https://camo.githubusercontent.com/702805128fd7e0eb9e0f4a573c7dec58bdaadf2000ffc4f3447b1487db619ad6/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d626f6f7473747261702d6e6f746966792f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-bootstrap-notify)[![License](https://camo.githubusercontent.com/10aa5c5c3dc3466e43cc468fcaadf248c5c69df2646d14f706c6d6adbff428e5/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d626f6f7473747261702d6e6f746966792f6c6963656e7365)](https://packagist.org/packages/yii2mod/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 yii2mod/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

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Tags

yii2yii2-bootstrap-notifyyii2-extensionyii2-notifyyii2yii2 alertyii2 bootstrap alert

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[yii2mod/yii2-sweet-alert

Alert widget based on SweetAlert extension {@link http://tristanedwards.me/sweetalert)

43154.0k2](/packages/yii2mod-yii2-sweet-alert)[wbraganca/yii2-tagsinput

The yii2-tagsinput is a Yii 2 wrapper for \[bootstrap-tagsinput\](https://github.com/timschlechter/bootstrap-tagsinput). A user interface for managing tags.

32160.2k](/packages/wbraganca-yii2-tagsinput)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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