Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Easy flash notifications

Subscribe to updates I use flashy

Statistics on flashy

Number of watchers on Github 241
Number of open issues 0
Main language PHP
Average time to merge a PR about 3 hours
Open pull requests 0+
Closed pull requests 0+
Last commit over 2 years ago
Repo Created about 4 years ago
Repo Last Updated almost 2 years ago
Size 9 KB
Organization / Authormercuryseries
Page Updated
Do you use flashy? Leave a review!
View flashy activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating flashy for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Easy Flash Messages


Inspired by Jeffrey Way's Flash Package. Added following Jeffrey mega's request.


Video Tutorial

Watch a Video Tutorial here

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' => [

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

'aliases' => [
    'Flashy' => MercurySeries\Flashy\Flashy::class,


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

public function store()
    Flashy::message('Welcome Aboard!', '');

    return Redirect::home();

You may also do:

  • Flashy::info('Message', '')
  • Flashy::success('Message', '')
  • Flashy::error('Message', '')
  • Flashy::warning('Message', '')
  • Flashy::primary('Message', '')
  • Flashy::primaryDark('Message', '')
  • Flashy::muted('Message', '')
  • Flashy::mutedDark('Message', '')

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)
  • '' - 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()

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

    return home();

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

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

<script id="flashy-template" type="text/template">
    <div class="flashy flashy--{{ Session::get('flashy_notification.type') }}">
        <i class="material-icons">speaker_notes</i>
        <a href="#" class="flashy__body" target="_blank"></a>

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

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:


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


<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">

<div class="container">

    <p>Welcome to my website...</p>

<script src="//"></script>

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!', '');

return Redirect::home();
Flashy::error('Sorry! Please try again.', '');

return Redirect::home();

Nice rendering

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

<link href="//" rel="stylesheet">
<link href='//,400,600,700' rel='stylesheet'>

and override the following sections of the default flashy view:

<style type="text/css">
.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;

<script id="flashy-template" type="text/template">
    <div class="flashy flashy--{{ Session::get('flashy_notification.type') }}">
        <i class="material-icons">speaker_notes</i>
        <a href="#" class="flashy__body" target="_blank"></a>
flashy questions on Stackoverflow (View All Questions)
  • CSS3 transition on iOS devices (iPhone / iPad): applying opacity transition the DOM object flashy
  • How to create nice flashy documentation e.g. user guide?
  • creating a flashy intro to an iPhone app
  • Android Emulator boots up with flashy 'Android' but the application never starts up and I wont see any Home Screen
  • CJ Flashy Slideshow - Requires page reload to work with Internet Explorer
  • How to add flashy transition arrows?
  • Flashy background image
  • Painted Shapes are Flashy and Jumpy when Repainting?
  • c# WPF how to produce a flashy warning
  • CSS background source gets 'flashy' in IE8 + Vista
  • Are WPF more 'flashy-like' than winforms?
flashy list of languages used
Other projects in PHP