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)1926.0k↓22.7%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 1mo ago

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 83% 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

1982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84cac52f5889d2bf6e710f2139dfc884824b2d7ce9c48a3bfe90704a94c85722?d=identicon)[ikkez](/maintainers/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.6k8](/packages/plasticbrain-php-flash-messages)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[xfra35/f3-cron

Job scheduling for the PHP Fat-Free Framework

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

Sweet event system for the PHP Fat-Free Framework

2822.1k3](/packages/ikkez-f3-events)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[cartalyst/alerts

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

3064.2k](/packages/cartalyst-alerts)

PHPackages © 2026

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