PHPackages                             mnshankar/flashmessenger - 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. mnshankar/flashmessenger

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

mnshankar/flashmessenger
========================

Easy flash notifications for Laravel 4 and PHP-5.3

1.1(10y ago)0112MITPHPPHP &gt;=5.3.0

Since Feb 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mnshankar/flashmessenger)[ Packagist](https://packagist.org/packages/mnshankar/flashmessenger)[ RSS](/packages/mnshankar-flashmessenger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/09ac0edfe9c29c64aef9bf8b35b418d2a6a5a365622466c40841aa352c76cd93/68747470733a2f2f7472617669732d63692e6f72672f6d6e7368616e6b61722f666c6173686d657373656e6765722e706e67)](https://travis-ci.org/mnshankar/flashmessenger)

Easy Flash Messages
===================

[](#easy-flash-messages)

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

[](#installation)

First, pull in the package through Composer.

```
"require": {
    "mnshankar/flashmessenger": "1.1"
}
```

And then, if using Laravel, include the service provider within `app/config/app.php`.

```
'providers' => array(
    'mnshankar\Flash\FlashServiceProvider'
);
```

And, for convenience, add a facade alias to this same file at the bottom:

```
'aliases' => array(
    'Flash' => 'mnshankar\Flash\Flash'
);
```

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect...

```
public function store()
{
    Flash::message('Welcome Aboard!');

    return Redirect::home();
}
```

You may also do:

- 'Flash::info('Message')`
- `Flash::success('Message')`
- `Flash::error('Message')`
- `Flash::warning('Message')`
- `Flash::overlay('Modal Message', 'Modal Title')`

Again, if using Laravel, this will set three keys in the session:

- 'flash\_notification.message' - The message you're flashing
- 'flash\_notification.level' - A string that represents the type of notification (good for applying HTML class names)

With this message flashed to the session, you may now display it in your view(s). Maybe something like:

```
@if (Session::has('flash_notification.message'))

        &times;

        {{ Session::get('flash_notification.message') }}

@endif
```

> Note that this package is optimized for use with Twitter Bootstrap.

Because flash messages and overlays are so common, if you want, you may use (or modify) the views that are included with this package. Simply append to your layout view:

```
@include('flashmessenger::message')
```

Example
-------

[](#example)

```
>

    Document

    @include('flashmessenger::message')

    Welcome to my website...

    $('#flash-overlay-modal').modal();

```

If you need to modify the flash message partials, you can run:

```
php artisan view:publish mnshankar/flashmessenger
```

The two package views will now be located in the `app/views/packages/mnshankar/flashmessenger/' directory.

Credits
=======

[](#credits)

This is almost a verbatim copy of Jeffrey Way's Flash library () .. I just tweaked it (very slightly) so I can use it with php 5.3.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~111 days

Total

2

Last Release

3988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec7d6db9c6a284d9ca1fb934910bb11c1eb3aaab1d9fc9daa5e92f98a43a37d6?d=identicon)[mnshankar](/maintainers/mnshankar)

---

Top Contributors

[![mnshankar](https://avatars.githubusercontent.com/u/2873887?v=4)](https://github.com/mnshankar "mnshankar (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mnshankar-flashmessenger/health.svg)

```
[![Health](https://phpackages.com/badges/mnshankar-flashmessenger/health.svg)](https://phpackages.com/packages/mnshankar-flashmessenger)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
