PHPackages                             yii2bs4/yii2-bootstrap4-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. yii2bs4/yii2-bootstrap4-notify

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

yii2bs4/yii2-bootstrap4-notify
==============================

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

0102PHP

Since Oct 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Specialist001/yii2-bootstrap4-notify)[ Packagist](https://packagist.org/packages/yii2bs4/yii2-bootstrap4-notify)[ RSS](/packages/yii2bs4-yii2-bootstrap4-notify/feed)WikiDiscussions master Synced yesterday

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/bf9e936044e3fe2c3f42b830b983ac223ffa29c90a629225325923738ab5dfbe/68747470733a2f2f706f7365722e707567782e6f72672f796969326273342f796969322d626f6f747374726170342d6e6f746966792f762f737461626c65)](https://packagist.org/packages/yii2bs4/yii2-bootstrap4-notify)[![Total Downloads](https://camo.githubusercontent.com/983fb945c06e1615c0ec1b0623b13bd89bfb03f23eea1f035644a9e07325f140/68747470733a2f2f706f7365722e707567782e6f72672f796969326273342f796969322d626f6f747374726170342d6e6f746966792f646f776e6c6f616473)](https://packagist.org/packages/yii2bs4/yii2-bootstrap4-notify)[![License](https://camo.githubusercontent.com/b7a571f1cafd7595545a7e117ba0d7862cdab11ff5c8a6cfa954a3a8ecaa7d8e/68747470733a2f2f706f7365722e707567782e6f72672f796969326273342f796969322d626f6f747374726170342d6e6f746966792f6c6963656e7365)](https://packagist.org/packages/yii2bs4/yii2-bootstrap4-notify)

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

[](#installation)

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

Either run

```
php composer.phar require yii2bs4/yii2-bootstrap4-notify "@dev"

```

or add

```
"yii2bs4/yii2-bootstrap4-notify": "@dev"

```

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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/9fdce5757f4172b2b3568499beeb6c734f1f86c518176b47ca8b2a359ba77f0c?d=identicon)[Specialist001](/maintainers/Specialist001)

---

Top Contributors

[![Specialist001](https://avatars.githubusercontent.com/u/31097426?v=4)](https://github.com/Specialist001 "Specialist001 (6 commits)")

### Embed Badge

![Health badge](/badges/yii2bs4-yii2-bootstrap4-notify/health.svg)

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

###  Alternatives

[heptacom/heptaconnect-portal-base

HEPTAconnect base dataset that every other portal is based on

1024.9k13](/packages/heptacom-heptaconnect-portal-base)

PHPackages © 2026

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