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

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

ikkez/f3-flash
==============

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

1.0.2(5y ago)2027.4k↓29%2[1 issues](https://github.com/ikkez/f3-flash/issues)[1 PRs](https://github.com/ikkez/f3-flash/pulls)5GPL-3.0PHP

Since Feb 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/ikkez/f3-flash)[ Packagist](https://packagist.org/packages/ikkez/f3-flash)[ Docs](https://github.com/ikkez/f3-flash)[ RSS](/packages/ikkez-f3-flash/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (4)Used By (5)

Flash
=====

[](#flash)

This is a little plugin to add simple Flash Messages and Flash Keys for PHP Fat-Free-Framework, version 3.x

### Installation

[](#installation)

- Method 1: use composer composer require ikkez/f3-flash
- Method 2: copy the `flash.php` file into your F3 `lib/` directory or another directory that is known to the [AUTOLOADER](https://fatfreeframework.com/quick-reference#AUTOLOAD)

### Usage

[](#usage)

To add a message (or multiple) that should only be displayed once in your template on the next request, just do:

```
\Flash::instance()->addMessage('You did that wrong.', 'danger');
// or
\Flash::instance()->addMessage('It worked!', 'success');
```

And to display that in your templates do:

```

  &times;
  {{ @msg.text | esc }}

```

That's it.

If you need, you could also add simple keys:

```
$flash = \Flash::instance()
$f3->set('FLASH', $flash);
$flash->setKey('highlight','bg-success'); // with value
$flash->setKey('show-hint'); // without returns just TRUE
$flash->setKey('error','Catastrophic error occured! ');
```

for use cases like:

```

  It's new !!!

  ...

```

```

    {{ @FLASH->getKey('error') }}

```

License
-------

[](#license)

You are allowed to use this plugin under the terms of the GNU General Public License version 3 or later.

Copyright (C) 2017 Christian Knuth \[ikkez\]

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

2028d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1177647?v=4)[Christian Knuth](/maintainers/ikkez)[@ikkez](https://github.com/ikkez)

---

Top Contributors

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

---

Tags

fat-free-frameworkflashflash-messagessessionflashF3fatfree

### Embed Badge

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

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

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.8k8](/packages/plasticbrain-php-flash-messages)[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8524.2M131](/packages/laminas-laminas-session)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

2411.0M16](/packages/bryanjhv-slim-session)[xfra35/f3-cron

Job scheduling for the PHP Fat-Free Framework

73110.5k](/packages/xfra35-f3-cron)[ikkez/f3-events

Sweet event system for the PHP Fat-Free Framework

2923.3k3](/packages/ikkez-f3-events)[ikkez/f3-pagination

Provides a pagebrowser and some pagination utilities for the PHP Fat-Free Framework

1625.9k2](/packages/ikkez-f3-pagination)

PHPackages © 2026

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