2017 © Pedro Peláez
 

library booby

Flash message storage system for Monolyth unframework

image

monolyth/booby

Flash message storage system for Monolyth unframework

  • Sunday, July 17, 2016
  • by monomelodies
  • Repository
  • 1 Watchers
  • 0 Stars
  • 157 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 3 % Grown

The README.md

Booby

Generic flash message storage system, (*1)

"Flash messages" are those one-off messages a web application might want to show to a User, e.g. "Changes saved successfully". The developer wants to add these messages and be ensured they get shown exactly once, whenever (between page loads, after redirect, on the desktop when generated in an Ajax request etc.)., (*2)

Installation

$ composer require monolyth/booby

Manual

  1. Clone or download the repository;
  2. Add /path/to/booby/src for namespace Monolyth\Booby in your autoloader.

Usage

Adding a message is simple:, (*3)

<?php

Monolyth\Booby\Flash::me('This is my awesome message.');

...as is later displaying it:, (*4)

<?php

foreach (Monolyth\Booby\Flash::each() as $msg) {
    echo $msg;
}

Adding options to messages

You can pass an optional second parameter to Flash::me containing a hash of key/value pairs available as options on your message. E.g.:, (*5)

<?php

Monolyth\Booby\Flash::me('This is a warning', ['type' => 'warning']);

$msg = Monolyth\Booby\Flash::each();
echo $msg->type; // "warning"

These options can be anything as long as the key is a valid PHP property name., (*6)

The Versions

17/07 2016

dev-master

9999999-dev

Flash message storage system for Monolyth unframework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash monolyth

17/07 2016

1.2.1

1.2.1.0

Flash message storage system for Monolyth unframework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash monolyth

10/07 2016

1.2.0

1.2.0.0

Flash message storage system for Monolyth unframework

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash monolyth

01/05 2016

dev-develop

dev-develop

Generic flash message storage system

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash

01/05 2016

1.1.3

1.1.3.0

Generic flash message storage system

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash

03/10 2015

1.1.2

1.1.2.0

Generic flash message storage system

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash

26/09 2015

1.1.1

1.1.1.0

Generic flash message storage system

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash

26/09 2015

1.1.0

1.1.0.0

Generic flash message storage system

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Marijn Ophorst

php message storage flash