PHPackages                             mercuryseries/flashy - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. mercuryseries/flashy

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

mercuryseries/flashy
====================

Easy flash notifications

v1.0.5(3y ago)44457.0k↓12.5%44[1 PRs](https://github.com/mercuryseries/flashy/pulls)1MITPHPPHP &gt;=5.4.0

Since Jan 11Pushed 2y ago19 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (1)

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

[](#easy-flash-messages)

[![Example of Error Notification](https://camo.githubusercontent.com/f4ba1afc032dd18e43140cb0e14c00f054e817e4eef43db216654ad061270e2e/68747470733a2f2f692e696d6775722e636f6d2f36556e4e736e702e706e67)](https://camo.githubusercontent.com/f4ba1afc032dd18e43140cb0e14c00f054e817e4eef43db216654ad061270e2e/68747470733a2f2f692e696d6775722e636f6d2f36556e4e736e702e706e67)

Copyright
=========

[](#copyright)

Inspired by [Jeffrey Way's Flash Package](https://github.com/laracasts/flash). Added following Jeffrey Ωmega's request.

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

[](#installation)

### Video Tutorial

[](#video-tutorial)

[Watch a Video Tutorial here](https://www.youtube.com/watch?v=GXMLd7F9o94)

### You like text ?

[](#you-like-text-)

First, pull in the package through Composer.

Run `composer require mercuryseries/flashy`

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

```
'providers' => [
    MercurySeries\Flashy\FlashyServiceProvider::class,
];
```

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

```
'aliases' => [
    'Flashy' => MercurySeries\Flashy\Flashy::class,
];
```

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect...

```
public function store()
{
    Flashy::message('Welcome Aboard!', 'http://your-awesome-link.com');

    return Redirect::home();
}
```

You may also do:

- `Flashy::info('Message', 'http://your-awesome-link.com')`
- `Flashy::success('Message', 'http://your-awesome-link.com')`
- `Flashy::error('Message', 'http://your-awesome-link.com')`
- `Flashy::warning('Message', 'http://your-awesome-link.com')`
- `Flashy::primary('Message', 'http://your-awesome-link.com')`
- `Flashy::primaryDark('Message', 'http://your-awesome-link.com')`
- `Flashy::muted('Message', 'http://your-awesome-link.com')`
- `Flashy::mutedDark('Message', 'http://your-awesome-link.com')`

Again, if using Laravel, this will set a few keys in the session:

- 'flashy\_notification.message' - The message you're flashing
- 'flashy\_notification.type' - A string that represents the type of notification (good for applying HTML class names)
- 'flashy\_notification.link' - The URL to redirect to on click

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

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

    flashy()->success('You have been logged out.', 'http://your-awesome-link.com');

    return home();
}
```

Or, for a general information flash, just do: `flashy('Some message', 'http://your-awesome-link.com');`.

With this message flashed to the session, you may now display it in your view(s). Maybe something like:

```
@if(Session::has('flashy_notification.message'))

        speaker_notes

    flashy("{{ Session::get('flashy_notification.message') }}", "{{ Session::get('flashy_notification.link') }}");

@endif
```

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

> Note that this package has jQuery has dependency. It's also better to load flashy before your body close tag.

Example
-------

[](#example)

```
>

    Document

    Welcome to my website...

@include('flashy::message')

```

If you need to modify the flash message partials, you can run:

```
php artisan vendor:publish
```

The two package views will now be located in the `app/views/packages/mercuryseries/flashy/` directory.

```
Flashy::message('Welcome aboard!', 'http://your-awesome-link.com');

return Redirect::home();
```

```
Flashy::error('Sorry! Please try again.', 'http://your-awesome-link.com');

return Redirect::home();
```

Nice rendering
--------------

[](#nice-rendering)

For a nice rendering you may include these lines in your head:

```

```

and override the following sections of the default flashy view:

```

.flashy {
    font-family: "Source Sans Pro", Arial, sans-serif;
    padding: 11px 30px;
    border-radius: 4px;
    font-weight: 400;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    color: #fff;
}

        speaker_notes

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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 ~524 days

Recently: every ~655 days

Total

6

Last Release

1158d ago

### Community

Maintainers

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

---

Top Contributors

[![mercuryseries](https://avatars.githubusercontent.com/u/5163810?v=4)](https://github.com/mercuryseries "mercuryseries (14 commits)")[![Piscarocarlos](https://avatars.githubusercontent.com/u/35196214?v=4)](https://github.com/Piscarocarlos "Piscarocarlos (2 commits)")[![maxolex](https://avatars.githubusercontent.com/u/25480095?v=4)](https://github.com/maxolex "maxolex (1 commits)")[![rikudosama](https://avatars.githubusercontent.com/u/20500592?v=4)](https://github.com/rikudosama "rikudosama (1 commits)")

### Embed Badge

![Health badge](/badges/mercuryseries-flashy/health.svg)

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

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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