sarin-r / php-flash-message by sarin-r

PHP Simple Flash Message for Lumen, Slim
14
0
1
Package Data
Maintainer Username: sarin-r
Maintainer Contact: sarin@mediarede.com (Sarin R)
Package Create Date: 2017-01-12
Package Last Update: 2017-02-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-08 03:13:44
Package Statistics
Total Downloads: 14
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Php Flash Messages

Simple PHP Flash Message for Lumen, Slim Frameworks

Install

Via Composer

$ composer require sarin/flash

Usage

$flash = new \Sarin\Flash\Messages();

// Add flash message
$flash->add($key, $message);

// Check if flash messages exists for key
$flash->has($key);

// Get flash messages by key
$flash->get($key);

// Get all flash messages
$flash->getAll();

License

The MIT License (MIT). Please see License File for more information.