2017 © Pedro Peláez
 

library cflash

PHP class for displaying messages on a website.

image

meshood/cflash

PHP class for displaying messages on a website.

  • Saturday, August 1, 2015
  • by Meshood
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

CFlash a PHP class for creating and render a message on a website or webapplication built with Anax-MVC.

Build Status Scrutinizer Code Quality Code Coverage, (*1)

License

This software is free software and carries a MIT license., (*2)

Installation

You will need a version of Anax-MVC for this module to work. Use Composer to download the module from Packagist into your Anax-MVC framework., (*3)

Once downloaded you will need to make it a service in the framework. You can do this in two ways., (*4)

  1. Put the following code in your CDIFactoryDefault file or if you have made your own, then use that one.
  2. Or you can take the same code but replace "$this->" with "$di->" and put it in your front controller.
$this->setShared('flash', function ()
{
    $flash = new \meshood\Flash\CFlash();
    return $flash;
});

You can now use the module like this., (*5)

$app->flash->message('information', 'This message is used for displaying information');
$app->flash->message('warning', 'This message is used for displaying a warning');
$app->flash->message('success', 'This message is used for displaying success');
$app->flash->message('error', 'This message is used for displaying an error');

Then use this code to get the html for the message(s)., (*6)

$app->flash->getMessage(),

If your want to test so the module works just copy the test.php file from the webroot in the module to your Anax-MVC webroot and point your browser to it., (*7)

And if you want basic styling you can copy the flash.css file from the module and put it in the css folder in Anax-MVC webroot., (*8)

History

v0.8.1 (2015-05-17), (*9)

  • Fixed missing documentation.

v0.8 (2015-05-17), (*10)

  • Now using namespace meshood\Flash.
  • Added history documentation.
  • Added install documentation.
  • Removed unnecessary files.

v0.1.1 (2015-05-17), (*11)

  • Fixed missing code in test.php.
  • Now using namespace Meshood\Flash.

v0.1 (2015-05-17), (*12)

  • Initial commit.
  • Working class.
  • Not working woth Packagist.
  • Missing documentation.
  • Working css to go with the class.

The Versions

01/08 2015

dev-master

9999999-dev http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

01/08 2015

v2.0

2.0.0.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

18/05 2015

v0.9.1

0.9.1.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

18/05 2015

v1.0

1.0.0.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

17/05 2015

v0.9

0.9.0.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

17/05 2015

v0.8.1

0.8.1.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

17/05 2015

v0.8

0.8.0.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

17/05 2015

v0.1.1

0.1.1.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education

17/05 2015

v0.1

0.1.0.0 http://dbwebb.se

PHP class for displaying messages on a website.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Axel Nilsson

micro framework mvc module education