PHPackages                             jeremy379/flash - 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. jeremy379/flash

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

jeremy379/flash
===============

Easy flash notifications with multiple messages

v2.7(5y ago)014.3k↓74.6%MITPHPPHP &gt;=7.4.0

Since Apr 15Pushed 5y agoCompare

[ Source](https://github.com/jeremy379/flash)[ Packagist](https://packagist.org/packages/jeremy379/flash)[ RSS](/packages/jeremy379-flash/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (2)Versions (12)Used By (0)

- Forked at first from Laracasts/Flash to use multiple message and then forked from mdupaul/flash

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

[](#easy-flash-messages)

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

[](#installation)

First, pull in the package through Composer.

Run `composer require jeremy379/flash`

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

```
'providers' => [
    'Jeremy379\Flash\FlashServiceProvider'
];
```

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

```
'aliases' => [
    'Flash' => 'Jeremy379\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 a few 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)

Alternatively, again, if you're using Laravel, you may reference the `flash()` helper function, instead of the facade. Here's an example:

```
/**
 * Destroy the user's session (logout).
 *
 * @return Response
 */
public function destroy()
{
    Auth::logout();

    flash()->success('You have been logged out.');

    return home();
}
```

Or, for a general information flash, just do: `flash('Some message');`.

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('flash::message')
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~164 days

Recently: every ~2 days

Total

11

Last Release

2091d ago

Major Versions

0.1 → 1.02016-04-15

1.3 → v2.02020-10-02

PHP version history (2 changes)0.1PHP &gt;=5.4.0

v2.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5048337?v=4)[Dillenbourg Jérémy](/maintainers/jeremy379)[@jeremy379](https://github.com/jeremy379)

---

Top Contributors

[![jeremy379](https://avatars.githubusercontent.com/u/5048337?v=4)](https://github.com/jeremy379 "jeremy379 (1 commits)")[![senordeveloper2050](https://avatars.githubusercontent.com/u/267267500?v=4)](https://github.com/senordeveloper2050 "senordeveloper2050 (1 commits)")[![zurcacielos](https://avatars.githubusercontent.com/u/267267500?v=4)](https://github.com/zurcacielos "zurcacielos (1 commits)")

### Embed Badge

![Health badge](/badges/jeremy379-flash/health.svg)

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

###  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.6M375](/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)
