PHPackages                             dev-promtheus98/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. dev-promtheus98/flashy

ActiveLibrary

dev-promtheus98/flashy
======================

Easy Flash Messages

1.1(1y ago)011MITPHPPHP ^8.0

Since Feb 9Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

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 [mercuryseries Flash Package](https://github.com/mercuryseries/flashy).

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

[](#installation)

### You like text ?

[](#you-like-text-)

First, pull in the package through Composer.

Run `composer require dev-promtheus98/flashy`

Note that the package are been tests only on laravel 9

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/dev-promtheus98/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

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e9638bd34cd54911d581c4fc5eb831ddbf3c2e4e0e1cbb5dc58e695c957e7b2?d=identicon)[dev-promtheus98](/maintainers/dev-promtheus98)

---

Top Contributors

[![dev-promtheus98](https://avatars.githubusercontent.com/u/64509342?v=4)](https://github.com/dev-promtheus98 "dev-promtheus98 (6 commits)")

---

Tags

laravelflashydev-promtheus98

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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