1. Go to this page and download the library: Download irfa/php-flash-message library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
irfa / php-flash-message example snippets
a\Flashmsg\Flash;
...
...
///SET FLASH Fail
Flash::set('fail-msg' , 'Description is ','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('msg');
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.