PHPackages                             vaibhavpandeyvpz/phlash - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. vaibhavpandeyvpz/phlash

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

vaibhavpandeyvpz/phlash
=======================

Package for flashing data now or later (in next request) for use in any micro/full-stack framework.

3.0.0(4mo ago)1871MITPHPPHP &gt;=8.2CI passing

Since Feb 2Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/vaibhavpandeyvpz/phlash)[ Packagist](https://packagist.org/packages/vaibhavpandeyvpz/phlash)[ Docs](https://github.com/vaibhavpandeyvpz/phlash)[ RSS](/packages/vaibhavpandeyvpz-phlash/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

Phlash
======

[](#phlash)

[![Latest Version](https://camo.githubusercontent.com/807a9d9f4df652e4b2e44093e06280f3f7c07a04760467f2cd9092f7a1636bba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661696268617670616e64657976707a2f70686c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/phlash)[![Downloads](https://camo.githubusercontent.com/afb132f75be436e8d90fd10aebb33d732735d97902afa8fd8de3f36ffa2ef647/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661696268617670616e64657976707a2f70686c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/phlash)[![PHP Version](https://camo.githubusercontent.com/37cb2a7c40cac74da0d934b6645dfc5064099b6353e863c3eff2a7ae51f340f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7661696268617670616e64657976707a2f70686c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/phlash)[![License](https://camo.githubusercontent.com/7e207b5d854826c23a8e05986a9f0a761148baba7b37db3acf8854eca310564a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7661696268617670616e64657976707a2f70686c6173682e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/93f2fe4557a3f2a9bd969f36f06f216f5160a0fa9ff842a8f34813ebb8cca12c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7661696268617670616e64657976707a2f70686c6173682f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/vaibhavpandeyvpz/phlash/actions)

A lightweight PHP library for managing flash messages that can be made available either immediately (in the current request) or in the next request. Perfect for use with any micro or full-stack framework.

Features
--------

[](#features)

- **Simple API**: Easy-to-use interface for flashing messages
- **Two Flash Types**: Flash messages for current request or next request
- **Framework Agnostic**: Works with any PHP framework or vanilla PHP
- **Type Safe**: Built with PHP 8.2+ features including strict types, enums, and type hints
- **Flexible Storage**: Uses `$_SESSION` by default, but accepts custom storage arrays
- **Zero Dependencies**: No external dependencies required
- **Fully Tested**: 100% code coverage with comprehensive test suite

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

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

[](#installation)

Install via Composer:

```
composer require vaibhavpandeyvpz/phlash
```

Quick Start
-----------

[](#quick-start)

```
