PHPackages                             anselmi-dev/flashed - 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. anselmi-dev/flashed

ActiveLaravel-bundle[Utility &amp; Helpers](/categories/utility)

anselmi-dev/flashed
===================

A tiny component to flash messages into Laravel session object.

1.2(4y ago)021MITPHPPHP ~7.0|~7.1

Since Feb 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/anselmi-dev/flashedGoto)[ Packagist](https://packagist.org/packages/anselmi-dev/flashed)[ Docs](https://github.com/anselmi-dev/flashedGoto)[ RSS](/packages/anselmi-dev-flashed/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (3)Dependencies (5)Versions (3)Used By (0)

Flashed
=======

[](#flashed)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3bb879740f554db9f6ecdeae6e4601728c5ae4986014203ec1735b4f81407be4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f63616e746f2f666c61736865642e7376673f7374796c653d666c61742d737175617265)](https://img.shields.io/packagist/v/gocanto/flashed.svg)[![License](https://camo.githubusercontent.com/23f563518dd6e7d62dcda5d8ce9806eeb91763e278c82a320ba16b6165432485/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f656173696573742d6a732d76616c696461746f722e737667)](https://github.com/gocanto/flashed/blob/master/LICENSE)[![Total Downloads](https://camo.githubusercontent.com/e9fac8ba6b43ee60b950b30b76bf3df4773f1e7f98cfcc95914ffd1a010d2d34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f63616e746f2f666c61736865642e7376673f7374796c653d666c61742d737175617265)](https://img.shields.io/packagist/dt/gocanto/flashed.svg?style=flat-square)

Flashed is a tiny solution to deal with the flash session in Laravel. Its aim is to keeping simple and driver based messages styling in your views, controllers, repositories, etc.

Getting started
===============

[](#getting-started)

***First of all***, you have to install the package through Composer running the following command in your terminal:

```
composer require gocanto/flashed
```

Once composer is done, add the package service provider in the providers array in `config/app.php`:

```
Gocanto\Flashed\FlashedServiceProvider::class,
```

***Second of all***, you will have to publish the vendor files shipped within this package. As so,

```
php artisan vendor:publish --tag=flashed-it
```

***Third of all***, you will have to specify the configuration option you wish to have for working with this package. So far, the package was made to work with Twitter bootstrap, but you can modify this to work with any CSS styling you might need.

After running this command, you will be able to see the partial view shipped with the packages, and the configuration file. Being the second one the most important file in order for the Flashed library to work properly.

You will find a good explanation about what each of the configuration options are about. You can take a look at them clicking on [here](https://github.com/gocanto/flashed/blob/master/config/flashedit.php).

How it to implement it in your controllers
==========================================

[](#how-it-to-implement-it-in-your-controllers)

You have to import he flash class, as so:

```
use Gocanto\Flashed\Flash;
```

Then, you can use its `static` method to create a new flash message, as so:

```
Flash::make()->message([
  'title' => 'Hi There!',
  'body' => 'this is the body'
]);
```

The title and body are optional, so you do not have to pass both to the make method. If you do not pass a title, the default one will be used instead.

Also, you will have the ability to create five different flash messages, for examples: 'primary', 'success', 'warning', 'danger' and 'info'. You only need to invoke them like so:

```
Flash::make('info')->message([
  'title' => 'This is a info message!',
  'body' => 'this is the body'
]);
```

***Note:*** By default, the message type is `danger`

The view shipped out
====================

[](#the-view-shipped-out)

The views included with this package can be imported like so,

```
@include ('vendor.flashedit.messages')
```

And it was created to work with the default driver which is `twitter bootstrap`

Contributing
============

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

License
=======

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Don't forget to [follow me on twitter](https://twitter.com/gocanto)!

Thanks!

Gustavo Ocanto.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

1619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12de0c7af2a64ef5f0c66e394f86f667d7862a89cd66e9c65106800957b9a378?d=identicon)[alzheimer](/maintainers/alzheimer)

---

Top Contributors

[![anselmi-dev](https://avatars.githubusercontent.com/u/12992403?v=4)](https://github.com/anselmi-dev "anselmi-dev (9 commits)")

---

Tags

laravelobjectsessionflashmessages

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anselmi-dev-flashed/health.svg)

```
[![Health](https://phpackages.com/badges/anselmi-dev-flashed/health.svg)](https://phpackages.com/packages/anselmi-dev-flashed)
```

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.6k8](/packages/plasticbrain-php-flash-messages)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[cartalyst/alerts

Alerts allows you to easily pass alert messages to your Laravel views.

3064.2k](/packages/cartalyst-alerts)[caffeinated/flash

Flash Messages for Laravel

4649.5k2](/packages/caffeinated-flash)

PHPackages © 2026

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