appotter / flash-message
Library for storing and retrieving flash messages with your native php application.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/appotter/flash-message
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-11 23:33:00 UTC
README
This is a simple library which has two static methods allowing you to get/set flash data or messages.
Coded by Joel Vardy.
Reformer by Phitsanu AP Chuamuangphan
Installation
Add the following to your composer.json
require object:
"appotter/flash-message": "~1.0"
Usage
Data
Set data upon failure.
Flash::data(array( 'username' => $username, 'email' => $email ));
Read data to display on the front end:
$data = Flash::data();
Messages
Set an error message:
Flash::message('error', 'You must enter a valid email address.');
Read all flash messages:
$messages = Flash::message();