PHPackages                             tasmaniski/zend-flash-noty-messenger - 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. tasmaniski/zend-flash-noty-messenger

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

tasmaniski/zend-flash-noty-messenger
====================================

View Helper for beautiful JS notifications.

2.0.2(9y ago)103122[1 PRs](https://github.com/tasmaniski/zend-flash-noty-messenger/pulls)JavaScriptPHP &gt;=5.6

Since Mar 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/tasmaniski/zend-flash-noty-messenger)[ Packagist](https://packagist.org/packages/tasmaniski/zend-flash-noty-messenger)[ Docs](https://github.com/tasmaniski)[ RSS](/packages/tasmaniski-zend-flash-noty-messenger/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Apple style notifications :)
============================

[](#apple-style-notifications-)

New version is here! Current version support Zend Framework 3

View Helper for showing flash messages with help of **NOTY** jQuery plugin
You must include the latest release of jQuery and Bootstrap.

[![alt tag](https://raw.githubusercontent.com/tasmaniski/zend-flash-noty-messenger/master/asset/screen-shot.png)](https://raw.githubusercontent.com/tasmaniski/zend-flash-noty-messenger/master/asset/screen-shot.png)

**Install**
-----------

[](#install)

Add in composer.json file and than run **composer update**

```
"require": {
    "tasmaniski/zend-flash-noty-messenger":"^2.0"
}
```

The module should be registered in **config/application.config.php**

```
'modules' => array(
    '...',
    'FlashNotyMessenger'
),
```

After that, copy 2 JS files from **vendor/tasmaniski/zend-flash-noty-messenger/asset/**
and put it on path **public/js/noty/**

```
mkdir public/js/noty/
cp vendor/tasmaniski/zend-flash-noty-messenger/asset/jquery.noty.packaged.js public/js/noty/jquery.noty.packaged.js
cp vendor/tasmaniski/zend-flash-noty-messenger/asset/jquery.noty.config.js public/js/noty/jquery.noty.config.js
```

Setup
-----

[](#setup)

In layout.phtml somewhere at the end trigger fire()

```
/**
 * The fire() method do
 *     Collect all messages from previous and current request
 *     clear current messages because we will show it
 *     add JS files
 *     add JS notifications
 */

```

Example from my code

```
//  at the end of layout.phtml

/* fire all messages */
