Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipublikuj-archive/flash-messages

Flash messages handler for Nette Framework (2.4+)
https://github.com/ipublikuj-archive/flash-messages

flash-messages ipub ipublikuj nette nette-extension nette-framework php php7 php71 php72 ui-messages

Last synced: about 1 month ago
JSON representation

Flash messages handler for Nette Framework (2.4+)

Awesome Lists containing this project

README

        

# Flash Messages

[![Build Status](https://img.shields.io/travis/ipublikuj-ui/flash-messages.svg?style=flat-square)](https://travis-ci.org/ipublikuj-ui/flash-messages)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/ipublikuj-ui/flash-messages.svg?style=flat-square)](https://scrutinizer-ci.com/g/ipublikuj-ui/flash-messages/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/ipublikuj-ui/flash-messages.svg?style=flat-square)](https://scrutinizer-ci.com/g/ipublikuj-ui/flash-messages/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/flash-messages.svg?style=flat-square)](https://packagist.org/packages/ipub/flash-messages)
[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/flash-messages.svg?style=flat-square)](https://packagist.org/packages/ipub/flash-messages)
[![License](https://img.shields.io/packagist/l/ipub/flash-messages.svg?style=flat-square)](https://packagist.org/packages/ipub/flash-messages)

Flash messages handler for [Nette Framework](http://nette.org/)

This extension replace default flash messages handling. If you want to use one interface for displaying messages, use this extension. For eg. if you are showing messages in modal windows, but sometimes this windows are deactivated, you can reach it with this extension. It store messages in one place and check if were displayed or not.

## Installation

The best way to install ipub/flash-messages is using [Composer](http://getcomposer.org/):

```sh
$ composer require ipub/flash-messages
```

After that you have to register extension in config.neon.

```neon
extensions:
flashMessages: IPub\FlashMessages\DI\FlashMessagesExtension
```

Package contains trait, which you will have to use in presenters or components to implement Flash messages component factory.

```php