PHPackages                             maxodrom/yii2-toastr - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. maxodrom/yii2-toastr

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

maxodrom/yii2-toastr
====================

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1.1.1(7y ago)060Apache-2.0PHP

Since Jan 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/maxodrom/yii2-toastr)[ Packagist](https://packagist.org/packages/maxodrom/yii2-toastr)[ RSS](/packages/maxodrom-yii2-toastr/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Yii2 Toastr Notification
========================

[](#yii2-toastr-notification)

This is the [Toastr](https://github.com/CodeSeven/toastr) extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist odaialali/yii2-toastr "*"

```

or add

```
"odaialali/yii2-toastr": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, you can test that the extension works by simply use it in your code by :

```

```

There are 2 main useful widgets

ToastrFlash
-----------

[](#toastrflash)

displays Yii flash messages in toastr notification style

```

```

```
