irfa / php-flash-message
"Flash Message for PHP"
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/irfa/php-flash-message
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-09-27 19:39:13 UTC
README
Configuration File Irfa/Flashmsg/config.php
Basic Usage
<?php require_once 'Autoloader.php'; use Irfa\Flashmsg\Flash; ...
Set Flash Message
You are free to set this message type, change css class or message view in config file.
Flash::set(key , message, type);
... ///SET FLASH Fail Flash::set('fail-msg' , 'Description is required','fail'); ///SET FLASH Success Flash::set('success-msg' , 'Update Success','success'); ///SET FLASH Info Flash::set('info-msg' , 'Please wait 1 minutes','success'); ///SET FLASH Warning Flash::set('warning-msg' , 'Username or Password Invalid','warning'); ///SET FLASH general Flash::set('general-msg' , 'Hello, i'm Message','general'); ///SET FLASH Other Flash::set('other-msg' , 'Just Other Message','other'); ...
Get Flash Message
Flash::get(key);
... ///GET FLASH MESSAGE Flash::get('msg'); ...