PHPackages                             ras/flash-alert-bundle - 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. ras/flash-alert-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

ras/flash-alert-bundle
======================

FlashAlertBundle provides a simplified way to handle (add/display) Symfony flash messages. Client side scripts are written in pure JavaScript.

2.1.1(10y ago)2423.3k9[3 issues](https://github.com/rasanga/FlashAlertBundle/issues)[2 PRs](https://github.com/rasanga/FlashAlertBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Sep 2Pushed 2y ago3 watchersCompare

[ Source](https://github.com/rasanga/FlashAlertBundle)[ Packagist](https://packagist.org/packages/ras/flash-alert-bundle)[ Docs](http://rasanga.github.io/FlashAlertBundle/)[ RSS](/packages/ras-flash-alert-bundle/feed)WikiDiscussions development Synced 1mo ago

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

FlashAlertBundle
================

[](#flashalertbundle)

[![Join the chat at https://gitter.im/rasanga/FlashAlertBundle](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/rasanga/FlashAlertBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)FlashAlertBundle is an open source Bundle which simplifies displaying flash alerts such as success, error, info and warning

[![Build Status](https://camo.githubusercontent.com/dc902c6440f767fb83417c2b84e60d2ec7d0f4589f384564327230c2b7b70cde/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726173616e67612f466c617368416c65727442756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rasanga/FlashAlertBundle/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/15eeb7935b6f2582ad8a76c43d33f31e9b8ea43809b2662bee09fe43dd0dc27c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726173616e67612f466c617368416c65727442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rasanga/FlashAlertBundle/?branch=master)

[![Demo screenshot](https://camo.githubusercontent.com/bbca34f552c3fba2ac954bc2d4ac83aa73c15f7a4c7d820e970d9e601af21fa8/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6676642d646174612f6e6f7465732f3235383637352f313431303630353435372d4b7365387a312f73637265656e2e706e67 "Demo screenshot")](https://camo.githubusercontent.com/bbca34f552c3fba2ac954bc2d4ac83aa73c15f7a4c7d820e970d9e601af21fa8/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6676642d646174612f6e6f7465732f3235383637352f313431303630353435372d4b7365387a312f73637265656e2e706e67)

Table of Contents
=================

[](#table-of-contents)

1. [Installation](#installation)
2. [Download the FlashAlertBundle](#step-1-download-the-flashalertbundle)
3. [Enable the bundle](#step-2-enable-the-bundle)
4. [Configure the bundle](#step-3-configure-the-bundle)
5. [Usage](#usage)
6. [Report flash alerts](#report-flash-alerts)
7. [Display flash alerts](#display-flash-alerts)
8. [Configuration](#configuration)
9. [Override view template](#override-view-template)
10. [Add custom styles](#add-custom-styles)
11. [Changelog](#changelog)
12. [License](#license)

Installation
============

[](#installation)

### Step 1: Download the FlashAlertBundle

[](#step-1-download-the-flashalertbundle)

***Using Composer***Add the following to the "require" section of your `composer.json` file:

```
    "ras/flash-alert-bundle": "dev-master"

```

And update your dependencies

```
    php composer.phar update

```

***Using submodules***Execute the following command on your project root:

```
$ git submodule add git@github.com:rasanga/FlashAlertBundle.git vendor/bundles/Ras/FlashAlertBundle
$ git submodule update --init
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Registers the bundle in your `app/AppKernel.php`:

```
