1. Go to this page and download the library: Download rdj/flash-me-php-7-1-3 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/ */
rdj / flash-me-php-7-1-3 example snippets
/**
* Change this /path if you load assets from local
* example 'css' => asset('/css/app.css'),
*/
return [
'css' => 'https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.1.5/css/iziToast.min.css',
'js' => 'https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.1.5/js/iziToast.min.js',
];
return [
'success' => [
'type' => 'success',
'title' => 'Hi...',
'message' => 'FlashMe is Ready!',
'options' => [
'position' => 'topRight', // this is an example option, you can add another option
'transitionIn' => 'bounceInLeft',
'transitionOut' => 'fadeOut',
],
],
'info' => [
'type' => 'info',
'title' => 'Hi...',
'message' => 'FlashMe is Ready!',
'options' => [
'position' => 'topRight', // this is an example option, you can add another option
'transitionIn' => 'bounceInLeft',
'transitionOut' => 'fadeOut',
],
],
'warning' => [
'type' => 'warning',
'title' => 'Hi...',
'message' => 'FlashMe is Ready!',
'options' => [
'position' => 'topRight', // this is an example option, you can add another option
'transitionIn' => 'bounceInLeft',
'transitionOut' => 'fadeOut',
],
],
'error' => [
'type' => 'error',
'title' => 'Hi...',
'message' => 'FlashMe is Ready!',
'options' => [
'position' => 'topRight', // this is an example option, you can add another option
'transitionIn' => 'bounceInLeft',
'transitionOut' => 'fadeOut',
],
],
];
public function testFlash()
{
flashMe()->success();
return view('your_view');
}