sarin/flash

PHP Simple Flash Message for Lumen, Slim

0.1 2017-01-17 06:09 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:17:41 UTC


README

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.