2017 © Pedro Peláez
 

library flash

Flash helps you to add flash messages to your PHP application.

image

sun/flash

Flash helps you to add flash messages to your PHP application.

  • Thursday, September 10, 2015
  • by IftekherSunny
  • Repository
  • 2 Watchers
  • 3 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Flash

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Flash helps you to add flash messages to your PHP application., (*2)

Installation Process

Just copy Flash folder somewhere into your project directory. Then include flash autoloader., (*3)

 require_once('/path/to/Flash/autoload.php');

Flash is also available via Composer/Packagist., (*4)

 composer require sun/flash

Flash Message View Installation Process

If you install flash manually, just add this line where you want to show flash message., (*5)

 include('/path/to/Flash/view/flash.php');

If you install flash via composer, You need to publish flash message view. To publish flash message view -, (*6)

 php vendor/sun/flash/publish

Then, include this view where you want to show flash message., (*7)

 include('view/Flash_Message.php);

In Flash message view I used Bootstrap css framework for flash message styling. You also need to add bootstrap to your project., (*8)

Bootstrap css, js and jQuery cdn
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
 <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

Add this line at the bottom of your page, (*9)

```html , (*10)

 })

```, (*11)

All Methods

To show success message
$flash = new Sun\Flash;
$flash->success('Hello');
To show error message
$flash->error('Whoops! There were some problems with your input.');
To show info message
$flash->info('your message');
To show warning message
$flash->warning('your message');
To show confirm message
$flash->confirm('Message Title', 'Your Message');
To show bootstrap modal popup message
$flash->overlay(
                 'Message Title',
                 'Your Message',
                 true,
                 'Allow Button Text',
                 'Allow Button Type',
                 'Dismiss Button Text',
                 'Dismiss Button Type
                 );

Defalut value for --, (*12)

 Submit Button = false
 Allow Button Text = Save
 Allow Button Type = success
 Dismiss Button Text = Close
 Dismiss Button Type = default

Screenshots

Flash Message Overlay:

Overlay view, (*13)

Flash Message Success:

Overlay view, (*14)

Flash Message Error:

Overlay view, (*15)

License

This package is licensed under the MIT License, (*16)

The Versions

10/09 2015

dev-master

9999999-dev

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php bootstrap message flash flash message

10/09 2015

v1.5

1.5.0.0

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php bootstrap message flash flash message

27/07 2015

v1.4

1.4.0.0

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

25/07 2015

v1.3

1.3.0.0

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

15/07 2015

v1.1

1.1.0.0

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires

 

laravel php bootstrap message flash flash message

13/07 2015

v1.0

1.0.0.0

Flash helps you to add flash messages to your PHP application.

  Sources   Download

MIT

The Requires