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

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

phpnt/bootstrap-notify
======================

Yii2 Bootstrap Notify

0.0.6(6y ago)22.6k13MITPHPPHP &gt;=5.4.0

Since Jul 5Pushed 6y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (7)Used By (3)

phpNT - Bootstrap Notify
========================

[](#phpnt---bootstrap-notify)

### Описание:

[](#описание)

### Выводит анимированные уведомления.

[](#выводит-анимированные-уведомления)

### [DEMO](http://phpnt.com/widget/bootstrap-notify?id=1)

[](#demo)

---

### - [Поддержать phpNT](http://phpnt.com/donate/index)

[](#--поддержать-phpnt)

---

### Социальные сети:

[](#социальные-сети)

- [Канал YouTube](https://www.youtube.com/c/phpnt)
- [Группа VK](https://vk.com/phpnt)
- [Группа facebook](https://www.facebook.com/Phpnt-595851240515413/)

---

Установка:

---

```
php composer.phar require "phpnt/bootstrap-notify" "*"

```

или

```
composer require phpnt/bootstrap-notify

```

или добавить в composer.json файл

```
"phpnt/bootstrap-notify": "*"

```

### Контроллер:

[](#контроллер)

---

```
    ...
    public function actionBootstrapNotify()
    {
        // Создание уведомления с минимальными параметрами
        \Yii::$app->session->set(
            'message',
            [
                'type'      => 'success',
                'message'   => 'Сообщение',
            ]
        );
        // Создание уведомления с расширенными параметрами
        \Yii::$app->session->set(
                    'message',
                    [
                        'type'      => 'info',                          // класс сообщения (success, info, warning, danger)
                        'icon'      => 'glyphicon glyphicon-ok',        // картинка перед сообщением, тип смотрим ниже
                        'icon_type' => 'class',                         // тип иконки в данном случае это класс bootstrap иконки,
                                                                        // для картинки image, а в icon указываем путь до картинки
                        'title'     => 'Спасибо',      // заголовок
                        'message'   => 'Сообщение',                     // текст сообщения

                        'element'           => 'body',                  // к какому элементу применяется уведомление
                        'position'          => 'absolute',              // позиция контейнера элемента (static | fixed | relative | absolute)
                        'allow_dismiss'     => '0',                     // позволять пользователю закрывать уведомление (1 - да, 0 - нет)
                        'newest_on_top'     => '0',                     // новое уведомление заменяет старое (1 - да, 0 - нет)
                        'showProgressbar'   => '0',                     // показывать прогресс бар (1 - да, 0 - нет)
                        'url'               => 'http://phpnt.com/',     // ссылка
                        'target'            => '_blank',                // target ссылки

                        'placement_from'    => 'bottom',                // позиция по вертикали (top или bottom)
                        'placement_align'   => 'center',                // позиция по горизонтали (left, center или right)

                        'offset'    => 20,                              // смещение от свойства placement_align (если left - смещение от левого края)
                        'offset_x'  => 20,                              // растояние между элементами уведомлений по оси x в писелях
                        'offset_y'  => 20,                              // растояние между элементами уведомлений по оси y в писелях
                        'spacing'   => 20,                              // расстояние между блоками
                        'z_index'   => 1031,                            // z-index
                        'delay'     => 5000,                            // время показа уведомления

                        'animate_enter' => 'animated fadeIn',       // анимация для начала показа
                        'animate_exit'  => 'animated fadeOut',     // анимация для конца показа
                        'template'      => '×{1}{2}',
                        // шаблон сообщения, здесь {0} = type, {1} = title, {2} = message, {3} = url, {4} = target
                    ]
                );
        return $this->render('bootstrap-notify');
    }
```

### Представление:

[](#представление)

---

```

```

---

Документация (примеры):
=======================

[](#документация-примеры)

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

[](#bootstrap-notify)

---

### Версия:

[](#версия)

### 0.0.1

[](#001)

---

### Лицензия:

[](#лицензия)

### [MIT](https://ru.wikipedia.org/wiki/%D0%9B%D0%B8%D1%86%D0%B5%D0%BD%D0%B7%D0%B8%D1%8F_MIT)

[](#mit)

---

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Recently: every ~123 days

Total

6

Last Release

2335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ef8790bedff67ae354b2d0450ffd1eaccc992bfb880213fdbb22a75e1e2c4d3?d=identicon)[phpnt](/maintainers/phpnt)

---

Top Contributors

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

---

Tags

yii2widgetnotifygrowlbootstrap-notifybootstrap-growl

### Embed Badge

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

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

###  Alternatives

[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20144.4k11](/packages/softark-yii2-dual-listbox)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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