PHPackages                             justinvoelker/yii2-bootstrapnotifyalert - 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. justinvoelker/yii2-bootstrapnotifyalert

ActiveYii2-extension

justinvoelker/yii2-bootstrapnotifyalert
=======================================

Bootstrap Notify style alerts for flash messages

1.0.3(10y ago)12.0k↓100%BSD-3-ClausePHP

Since Sep 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

\#Bootstrap Notify Alerts for Yii2

[Bootstrap Notify](http://bootstrap-notify.remabledesigns.com/) flash messages for Yii2.

This extension is nothing more than the Bootstrap Notify javascript and the [Animate.css](http://daneden.github.io/animate.css/) styles wrapped in a tiny extension. This extension aims to bring the power of Bootstrap Notify to Yii2 without additional enhancements or overhead. Simply add `use justinvoelker\bootstrapnotifyalert\FlashAlert;` to your layout and call the widget with `` to get started. Of course, there are options that can be specified as well to tweak the settings as desired.

\##Installation

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

Either run

```
php composer.phar require --prefer-dist justinvoelker/yii2-bootstrapnotifyalert "*"

```

or add

```
"justinvoelker/yii2-bootstrapnotifyalert": "*"

```

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

\##Setup

Add `justinvoelker\bootstrapnotifyalert\BootstrapNotifyAlertAsset` as a dependency in your `assets\AppAsset` file. It should look similar to the following:

```
...
public $depends = [
    'yii\web\YiiAsset',
    'yii\bootstrap\BootstrapAsset',
    'justinvoelker\bootstrapnotifyalert\BootstrapNotifyAlertAsset',
];
...
```

\##Usage

\###Basic Usage

Simply add the necessary `use justinvoelker\bootstrapnotifyalert\FlashAlert;` statement to your layout file then call the widget:

```

```

\###Advanced Usage

Rather than accept the defaults specified by Bootstrap Notify, any property can be set through the widget. Here are just a few of the usual options I like to use:

```
