PHPackages                             seyfer/zend-flashmessenger-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. seyfer/zend-flashmessenger-toastr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

seyfer/zend-flashmessenger-toastr
=================================

Zend Framework 3 flashmessenger module with Toastr integration

381[1 issues](https://github.com/seyfer/zend-flashmessenger-toastr/issues)PHP

Since Jun 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/seyfer/zend-flashmessenger-toastr)[ Packagist](https://packagist.org/packages/seyfer/zend-flashmessenger-toastr)[ RSS](/packages/seyfer-zend-flashmessenger-toastr/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Zend Framework 3 FlashMessenger module with integrated Toastr js library
========================================================================

[](#zend-framework-3-flashmessenger-module-with-integrated-toastr-js-library)

Motivation
----------

[](#motivation)

1. I had a problem with official ZF3 FlashMessenger module and decided to write own independent module. As a basis for flash messages, I got a simple pure PHP library.
2. I wanted to integrate Toastr js library for better flash messages UI. And make it easy to switch between Toastr view and standard bootstrap view.

If you want to use standard ZF3 Flashmessanger there is another module available.

---

This is how it will look like with Toastr view.

[![screen shot Toastr](https://raw.githubusercontent.com/seyfer/zend-flashmessenger-toastr/master/assets/screen-shot.png)](https://raw.githubusercontent.com/seyfer/zend-flashmessenger-toastr/master/assets/screen-shot.png)

And this is Bootstrap

[![screen shot Bootstrap](https://raw.githubusercontent.com/seyfer/zend-flashmessenger-toastr/master/assets/screen-shot2.png)](https://raw.githubusercontent.com/seyfer/zend-flashmessenger-toastr/master/assets/screen-shot2.png)

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

[](#installation)

`composer require seyfer/zend-flashmessenger-toastr`

Than add module to your **config/modules.config.php**

```
'modules' => [
    '...',
    'Seyfer\Zend\Flashmessenger'
],
```

You can switch the source of Toastr lib files by using this config in your **module.config.php**

```
'toastr' => [
    //cdn or assets
    'source' => 'cdn',
],
```

How to use it
-------------

[](#how-to-use-it)

Add messages somewhere in your controller with provided plugin.

```
