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

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

joelvardy/flash
===============

Library for storing and retrieving flash data / messages.

47.0k11PHP

Since Oct 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/joelvardy/flash)[ Packagist](https://packagist.org/packages/joelvardy/flash)[ RSS](/packages/joelvardy-flash/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (1)

Flash Data / Messages Library
=============================

[](#flash-data--messages-library)

This is a simple library which has two static methods allowing you to get/set flash data or messages.

Coded by [Joel Vardy](https://joelvardy.com/).

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

[](#installation)

Add the following to your `composer.json` require object:

```
"joelvardy/flash": "dev-master"
```

Usage
-----

[](#usage)

### Data

[](#data)

Set data upon failure.

```
Flash::data(array(
	'username' => $username,
	'email' => $email
));
```

Read data to display on the front end:

```
$data = Flash::data();
```

### Messages

[](#messages)

Set an error message:

```
Flash::message('error', 'You must enter a valid email address.');
```

Read all flash messages:

```
$messages = Flash::message();
```

You may also be interested in my [template library](https://github.com/joelvardy/template).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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