PHPackages                             fungku/sweet-flasher - 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. fungku/sweet-flasher

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

fungku/sweet-flasher
====================

Sweet flash messaging

v0.1(10y ago)063MITPHPPHP &gt;= 5.5

Since Aug 26Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

Sweet Flasher
=============

[](#sweet-flasher)

[![Test Status](https://camo.githubusercontent.com/eadabeace97281bfe8077286fb578f646c22905f81722b539ec7b98f9afa2c82/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66756e676b752f73776565742d666c61736865722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fungku/sweet-flasher)[![Release](https://camo.githubusercontent.com/9a35efad820e350e6a9e5961cc722540664b923b358de5a52fc2d2e9ae02ce1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66756e676b752f73776565742d666c61736865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fungku/sweet-flasher)[![License](https://camo.githubusercontent.com/aa32362e6f80ae69b966e56435532565795b59682d02269a98f5f094ad1e797e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66756e676b752f73776565742d666c61736865722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/aa32362e6f80ae69b966e56435532565795b59682d02269a98f5f094ad1e797e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66756e676b752f73776565742d666c61736865722e7376673f7374796c653d666c61742d737175617265)

Simple, sweet flash messages.

Currently supports Laravel and (maybe) Symfony.

Install
-------

[](#install)

Install with composer like any sane developer.

### Composer

[](#composer)

```
composer require "fungku/sweet-flasher: ~0.1@dev"
```

#### Laravel

[](#laravel)

For Laravel apps, add the Service Provider class to `config/app.php` services array:

```
    Fungku\SweetFlasher\Providers\SweetFlasherLaravelServiceProvider::class,
```

#### Symfony

[](#symfony)

For Symfony, try the [`SymfonySessionFlasher`](https://github.com/fungku/sweet-flasher/blob/master/src/SessionFlasher/SymfonySessionFlasher.php). I don't actually know how Symfony works, I was just trying to provide an example.

If you do know, please help me out here.

Usage
-----

[](#usage)

##### Laravel:

[](#laravel-1)

Inject it

```
use Fungku\SweetFlasher\FlashMessage;

class MyController extends Controller
{
    public function store(FlashMessage $flashMessage)
    {
        // save ...

        $flashMessage->success("Nicely done");

        return response();
    }
}
```

Or if you are a lazy piece of crap use the helper function `flash()`:

```
// Default info message
flash("This is a default info message");

// Other usages like:
// flash->{$level}($message, $title, $confirm_button_text)

flash()->success("This is a success message");

flash()->error("Some error!");

flash()->warning("Some Warning!", "Uh oh!");
```

##### Symfony (maybe):

[](#symfony-maybe)

```
use Fungku\SweetFlasher\FlashMessage;

class MyController
{
    private $flash;

    public function __construct(FlashMessage $flash)
    {
        $this->flash = $flash;
    }

    public function doAction()
    {
        // .. do action

        $this->flash->success('You did it!');
    }
}
```

##### Everybody else:

[](#everybody-else)

You can do it.

##### *Notes*

[](#notes)

This is nearly a fork of [laracasts/flash](https://github.com/laracasts/flash)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3919d ago

### Community

Maintainers

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

---

Top Contributors

[![ryanwinchester](https://avatars.githubusercontent.com/u/2897340?v=4)](https://github.com/ryanwinchester "ryanwinchester (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fungku-sweet-flasher/health.svg)

```
[![Health](https://phpackages.com/badges/fungku-sweet-flasher/health.svg)](https://phpackages.com/packages/fungku-sweet-flasher)
```

###  Alternatives

[rickysu/php-livereload

a livereload server implement by php

753.9k](/packages/rickysu-php-livereload)[nikolaposa/zf-disqus

ZF module which facilitates integration of Disqus widgets

1210.7k](/packages/nikolaposa-zf-disqus)

PHPackages © 2026

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