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(11y ago)0112MITPHPPHP &gt;=5.3.0

Since Feb 25Pushed 11y ago1 watchersCompare

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

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 47% 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

4035d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M376](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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