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

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

stdakov/flash
=============

Simple php flash message library

v1.0.0(1y ago)05MITDockerfilePHP &gt;=7.4

Since Nov 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stdakov/php_flash_messages)[ Packagist](https://packagist.org/packages/stdakov/flash)[ RSS](/packages/stdakov-flash/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP FLASH messages
==================

[](#php-flash-messages)

This is supper simple implementation of php flash messages

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

[](#installation)

The preferred way to install this tool is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require stdakov/flash

```

or add

```
"stdakov/flash": "*"

```

Usage
-----

[](#usage)

set message:

```
require 'vendor/autoload.php';

session_start();

use Dakov\FM;

if (isset($_POST['username']) && isset($_POST['password'])) {

    $user = getUser($_POST['username']);

    if ($user != null && isset($user['id']) && password_verify($_POST['password'], $user['password'])) {
        $_SESSION["USER"] = $user['id'];
        $hour = time() + 3600 * 24 * 365;
        setcookie('user_id', $user['id'], $hour);
    } else {
        FM::set("wrong_credentials", "Invalid credentials");
    }

    header("Location: /");
}
```

use the message:

```

```

The MIT License (MIT)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

537d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7be3a6670043ef598a1f64ecadb2eac788f4e985090fe2919bf1bfc7ff220abd?d=identicon)[stdakov](/maintainers/stdakov)

---

Top Contributors

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

---

Tags

sessionflashmessages

### Embed Badge

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

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

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

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

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[cartalyst/alerts

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

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

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

1926.0k5](/packages/ikkez-f3-flash)[devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.

6310.3k1](/packages/devmarketer-laraflash)[dereuromark/cakephp-flash

A CakePHP plugin around powerful flash message handling.

1228.6k2](/packages/dereuromark-cakephp-flash)

PHPackages © 2026

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