2017 © Pedro Peláez
 

library flash

Gobline Flash Component

image

gobline/flash

Gobline Flash Component

  • Wednesday, February 1, 2017
  • by mdecaffmeyer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 74 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Flash component

The Flash component allows to store data across requests and objects with a session or request level scope. It is primarily designed to store messages accross requests., (*1)

Usage

$flash = new Gobline\Flash\Flash();
$flash->initialize();

$flash->next('error', 'User email is invalid'); // sets a message that will be available in the next request

$flash->get('error'); // message only available in the next request, throws \InvalidArgumentException

$flash->get('error', 'foo'); // message only available in the next request, returns default "foo" value

$flash->now('info', 'Three credits remain in your account'); // message available in the current request

$flash->get('info'); // returns "Three credits remain in your account"

$flash->keep(); // keep messages set in the previous request so they will be available in the next request

Note that messages stored with next() are made available for the next request but not the request after that one. keep() allows to keep the same messages accross multiple requests., (*2)

Installation

You can install the Flash component using the dependency management tool Composer. Run the require command to resolve and download the dependencies:, (*3)

composer require gobline/flash

The Versions

01/02 2017

dev-master

9999999-dev https://github.com/gobline

Gobline Flash Component

  Sources   Download

BSD-3-Clause

The Requires

 

by Mathieu Decaffmeyer

flash gobline flashmessenger flash messenger

03/12 2015

v2.0.0

2.0.0.0 https://github.com/gobline

Gobline Flash Component

  Sources   Download

BSD-3-Clause

The Requires

 

by Mathieu Decaffmeyer

flash gobline flashmessenger flash messenger

17/01 2015

v1.0.2

1.0.2.0 https://github.com/mendoframework

Mendo Flash Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0
  • mendoframework/session ~1.0

 

The Development Requires

by Mathieu Decaffmeyer

flash mf mendoframework mendo framework flashmessenger flash messenger

14/11 2014

v1.0.1

1.0.1.0 https://github.com/mendoframework

Mendo Flash Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0
  • mendoframework/session ~1.0

 

The Development Requires

by Mathieu Decaffmeyer

flash mf mendoframework mendo framework flashmessenger flash messenger

13/11 2014

v1.0.0

1.0.0.0 https://github.com/mendoframework

Mendo Flash Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0
  • mendoframework/session ~1.0

 

The Development Requires

by Mathieu Decaffmeyer

flash mf mendoframework mendo framework flashmessenger flash messenger