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

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

michel/flash
============

PHP Flash is a lightweight library for managing message flash functionality in PHP applications. It allows you to easily display temporary messages, such as success messages, warnings, and error notifications, to enhance the user experience.

1.0.1(1mo ago)05MITPHPPHP &gt;=7.4

Since Dec 16Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Michel Flash ⚡
==============

[](#michel-flash-)

A simple, lightweight flash message manager for PHP.

Flash messages are temporary messages (like success, error, or warning notifications) that are stored in the session and automatically deleted after being read once.

**It can be used as a standalone library in any PHP project, or natively integrated into the Michel Framework.**

---

1. Installation
---------------

[](#1-installation)

Install the package via Composer:

```
composer require michel/flash
```

---

2. Setup
--------

[](#2-setup)

### Option A: Standalone PHP (Any Framework / Vanilla PHP)

[](#option-a-standalone-php-any-framework--vanilla-php)

To use it outside of the Michel Framework, just instantiate the `Flash` class and pass it your session array reference (usually `$_SESSION`).

```
