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

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

neodc/flash
===========

Easy flash notifications with multiple messages

1.4.3(1y ago)042.6k—9.8%MITPHPPHP &gt;=8.1

Since Apr 15Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (11)Used By (0)

- Forked at first from Laracasts/Flash to use multiple message

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

[](#easy-flash-messages)

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

[](#installation)

First, pull in the package through Composer.

Run `composer require mdupaul/flash`

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

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

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

```
'aliases' => [
    'Flash' => 'Mdupaul\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

45

—

FairBetter than 93% of packages

Maintenance46

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~408 days

Recently: every ~776 days

Total

9

Last Release

418d ago

Major Versions

0.1 → 1.02016-04-15

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

1.4.3PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/50659fb99fbc187fff21ebe7eb3bc1232f46c2d392d1b66844a07b31510b4f2e?d=identicon)[neodc](/maintainers/neodc)

---

Top Contributors

[![neodc](https://avatars.githubusercontent.com/u/304141?v=4)](https://github.com/neodc "neodc (5 commits)")[![chindit](https://avatars.githubusercontent.com/u/2115451?v=4)](https://github.com/chindit "chindit (3 commits)")[![zurcacielos](https://avatars.githubusercontent.com/u/267267500?v=4)](https://github.com/zurcacielos "zurcacielos (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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