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

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

larapac/flash
=============

Easy flash notifications

v0.5.0(6y ago)62.0k1MITPHPPHP &gt;=5.4.0CI failing

Since Nov 21Pushed 6y ago1 watchersCompare

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

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

FlashMessages
=============

[](#flashmessages)

Simple Flash Messages for Your Laravel App

Features:

- Messages by levels (info, success, warning, danger);
- Multiple messages (of different types and for types);
- Stack of messages and ability to pick messages of a single type;
- Additional message data (by array or current interface);
- Message sent on a page does not replace a message sent by redirecting to the page;
- Does not need linking with JS or message front-end.

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

[](#installation)

```
composer require larapac/flash

```

Usage
-----

[](#usage)

To send a message use helper `flash()`

```
  flash('Some info message');
```

In template:

```
  @foreach (flash()->messages() as $message)
      {{ $message->level }}: {{ $message->text }}
  @endforeach
```

Messages have properties

- `text`
- `level` (success, info, warning, danger)

Messages have levels and service allows to send multiple messages:

```
  flash('Info level message');
  flash()->info('Info level message two');
  flash()->success('Success level message');
  flash()->warning('Warning level message');
  flash()->warning('Warning level message two');
  flash()->danger('Danger level message');
  flash()->error('Danger level message from alias method');
```

And we can get messages of only one single level:

```
Errors:
    @foreach(flash()->messages('danger') as $message)
        {{ $message->text }};
    @endforeach
    @foreach($errors->all() as $message)
        {{ $message }};
    @endforeach
```

Add extra data message:

```
  //use array
  flash()->info('Message', ['important' => true, 'timeout' => 3]);

  //fluent style
  flash()->info('Message')->important()->timeout(3);
```

```
  @foreach (flash()->messages() as $message)
      {{ $message->level }}: {{ $message->text }} {{ $message->important ? '!' : '.' }}
  @endforeach
```

Other
-----

[](#other)

If you want it to be more simple, use class from gist: [FlashMessageSender](https://gist.github.com/Ellrion/7ee8085b35f0de8c6d386255f9dd16bb)

Or see these packages:

- [codecourse/notify](https://github.com/codecourse/notify)
- [laracasts/flash](https://github.com/laracasts/flash)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% 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 ~122 days

Recently: every ~213 days

Total

8

Last Release

2242d ago

### Community

Maintainers

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

---

Top Contributors

[![Ellrion](https://avatars.githubusercontent.com/u/1150861?v=4)](https://github.com/Ellrion "Ellrion (17 commits)")[![julianajarm](https://avatars.githubusercontent.com/u/32193292?v=4)](https://github.com/julianajarm "julianajarm (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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