PHPackages                             azenox/flashmcqueen - 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. azenox/flashmcqueen

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

azenox/flashmcqueen
===================

Session Based PHP Flash Messages

1.0(5y ago)112MITPHP

Since Mar 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AzenoX/FlashMcQueen)[ Packagist](https://packagist.org/packages/azenox/flashmcqueen)[ RSS](/packages/azenox-flashmcqueen/feed)WikiDiscussions master Synced 6d ago

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

Flash Mc Queen
==============

[](#flash-mc-queen)

Session based PHP Flash Messages.

Store messages in sessions and display them when you need.

Features
--------

[](#features)

- Customize icons, colors, or use predefined functions
- Namespaced
- Persistent messages

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

[](#installation)

Via composer

```
composer require azenox/flashmcqueen
```

Via file (Download PHP file (and style if you want), from this repository).

```
require '/path/to/FlashMcQueen.php';
```

Usage
-----

[](#usage)

```
require '/path/to/FlashMcQueen.php';

use AzenoX\FlashMcQueen;

if(!session_id())
    session_start();

$flash = new FlashMcQueen();

$flash->success("A Success Message", true, [], true);
$flash->error("An Error Message");
$flash->warning("A Warning Message");
$flash->info("An Informational Message");

$flash->custom("Am a Fish", '', '#00BCD4', true);

$flash->display();
```

Fell free to use and modify **style.css** in src/ directory to stylise messages.

List of all methods
-------------------

[](#list-of-all-methods)

### Success

[](#success)

```
$flash->success(string $msg, bool $persistent = false, array $delays = [], bool $floatingIcon = false);
```

- $msg: The displayed message
- $persistent: true if the message will be remains on the screen until the user remove it (Default: false)
- $delays: It's an associative array with 3 optional keys:
    - **fadeIn** (Default: 1): Number of seconds of the fade in animation
    - **stay** (Default: 5): Number of seconds while the message will stay on the screen
    - **fadeOut** (Default: 1): Number of seconds of the fade out animation
- $floatingIcon: true if the icon should be animated

### Error

[](#error)

```
$flash->error(string $msg, bool $persistent = false, array $delays = [], bool $floatingIcon = false);
```

- $msg: The displayed message
- $persistent: true if the message will be remains on the screen until the user remove it (Default: false)
- $delays: It's an associative array with 3 optional keys:
    - **fadeIn** (Default: 1): Number of seconds of the fade in animation
    - **stay** (Default: 5): Number of seconds while the message will stay on the screen
    - **fadeOut** (Default: 1): Number of seconds of the fade out animation
- $floatingIcon: true if the icon should be animated

### Warning

[](#warning)

```
$flash->warning(string $msg, bool $persistent = false, array $delays = [], bool $floatingIcon = false);
```

- $msg: The displayed message
- $persistent: true if the message will be remains on the screen until the user remove it (Default: false)
- $delays: It's an associative array with 3 optional keys:
    - **fadeIn** (Default: 1): Number of seconds of the fade in animation
    - **stay** (Default: 5): Number of seconds while the message will stay on the screen
    - **fadeOut** (Default: 1): Number of seconds of the fade out animation
- $floatingIcon: true if the icon should be animated

### Info

[](#info)

```
$flash->info(string $msg, bool $persistent = false, array $delays = [], bool $floatingIcon = false);
```

- $msg: The displayed message
- $persistent: true if the message will be remains on the screen until the user remove it (Default: false)
- $delays: It's an associative array with 3 optional keys:
    - **fadeIn** (Default: 1): Number of seconds of the fade in animation
    - **stay** (Default: 5): Number of seconds while the message will stay on the screen
    - **fadeOut** (Default: 1): Number of seconds of the fade out animation
- $floatingIcon: true if the icon should be animated

### Custom

[](#custom)

```
$flash->custom(string $msg, string $icon, string $color, bool $persistent = false, array $delays = [], bool $floatingIcon = false);
```

- $msg: The displayed message
- $icon: It can be any character or any SVG
- $color: A hex color (with '#' at the beginning)
- $persistent: true if the message will be remains on the screen until the user remove it (Default: false)
- $delays: It's an associative array with 3 optional keys:
    - **fadeIn** (Default: 1): Number of seconds of the fade in animation
    - **stay** (Default: 5): Number of seconds while the message will stay on the screen
    - **fadeOut** (Default: 1): Number of seconds of the fade out animation
- $floatingIcon: true if the icon should be animated

About
-----

[](#about)

This is my first big project, so let me know if there are any errors or if you want me to add/modify something.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3723cd3cbf78bef4bb0ebd30dc783b84ed2540b4567b332074da047a100d86b4?d=identicon)[Azenox](/maintainers/Azenox)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/azenox-flashmcqueen/health.svg)

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

###  Alternatives

[rs/laravel-version-control

Foundations for making your app version controlled. Provides migration, blueprint and base models. Will make your app GxP compliant if you exclusively use the VC models and table structure as set out in this package.

1227.5k](/packages/rs-laravel-version-control)[mad-web/laravel-seoable

Easy to map your eloquent fields to seo properties

407.6k](/packages/mad-web-laravel-seoable)[wpsitecare/carelib

A collection of helpful functions to make creating an awesome theme more enjoyable.

164.6k](/packages/wpsitecare-carelib)

PHPackages © 2026

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