lova/flashingmessage

Flash class using sessions

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lova/flashingmessage

dev-master 2015-05-19 11:13 UTC

This package is not auto-updated.

Last update: 2025-12-21 00:12:11 UTC


README

How to use

1.Download

The easiest way is to install the module using composer. Add to your composer.json:

"require": {
"lova/flashingmessage": "dev-master"
},

And then run composer install.

You can also download the zip file from here.

2.Include it in your project.

To include flashingmessage in your project add the class in your frontcontroller:

$di->setShared('flash', function() { 
$flash = new \lova\flashingmessage\flashingmessage(); 
return $flash; 
});

Here's an example of how to use add a message:

$app->flash->message('success', 'This message tells you your action was succesful'); 

License

This software is free software and carries a MIT license.