PHPackages                             gobline/flash - 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. gobline/flash

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

gobline/flash
=============

Gobline Flash Component

v2.0.0(10y ago)11392BSD-3-ClausePHPPHP &gt;=5.6.0

Since Nov 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gobline/flash)[ Packagist](https://packagist.org/packages/gobline/flash)[ Docs](https://github.com/gobline)[ RSS](/packages/gobline-flash/feed)WikiDiscussions master Synced 4d ago

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

Flash component
===============

[](#flash-component)

The Flash component allows to **store data across requests and objects** with a **session or request level scope**. It is primarily designed to store **messages** accross requests.

Usage
-----

[](#usage)

```
$flash = new Gobline\Flash\Flash();
$flash->initialize();

$flash->next('error', 'User email is invalid'); // sets a message that will be available in the next request

$flash->get('error'); // message only available in the next request, throws \InvalidArgumentException

$flash->get('error', 'foo'); // message only available in the next request, returns default "foo" value

$flash->now('info', 'Three credits remain in your account'); // message available in the current request

$flash->get('info'); // returns "Three credits remain in your account"

$flash->keep(); // keep messages set in the previous request so they will be available in the next request
```

Note that messages stored with `next()` are made available for the next request but not the request after that one. `keep()` allows to keep the same messages accross multiple requests.

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

[](#installation)

You can install the Flash component using the dependency management tool [Composer](https://getcomposer.org/). Run the *require* command to resolve and download the dependencies:

```
composer require gobline/flash

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3866d ago

Major Versions

v1.0.2 → v2.0.02015-12-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/1564a230fe2f5125b0504cf6b6fe1e829face1a5d20ec663b3b8d22843312c7d?d=identicon)[mdecaffmeyer](/maintainers/mdecaffmeyer)

---

Tags

flashflashmessengergoblineflash messenger

### Embed Badge

![Health badge](/badges/gobline-flash/health.svg)

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

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

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

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[caffeinated/flash

Flash Messages for Laravel

4350.4k2](/packages/caffeinated-flash)[cartalyst/alerts

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

2671.7k](/packages/cartalyst-alerts)[ikkez/f3-flash

Add simple Flash Messages and Flash Keys to PHP Fat-Free Framework

2027.4k6](/packages/ikkez-f3-flash)[sabre/amf

SabreAMF is a Flash Remoting server and client for PHP

416.2k1](/packages/sabre-amf)

PHPackages © 2026

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