1. Go to this page and download the library: Download sh/flash 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/ */
sh / flash example snippets
$di->setShared('flash', function() {
$flash = new \Anax\FlashMessage\FlashMessage();
return $flash;
});
$this->setShared('flash', function() {
$flash = new \Anax\FlashMessage\FlashMessage();
return $flash;
});
$app->flash->message('information', 'This is a info message');
$app->flash->message('warning', 'This is a warning message');
$app->flash->message('success', 'This is a success message');
$app->flash->message('error', 'This is a error message');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.