2017 © Pedro Peláez
 

library message

PHP classes to send a message, can be used in Anax MVC

image

aceer/message

PHP classes to send a message, can be used in Anax MVC

  • Monday, July 6, 2015
  • by acer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CMessage

Build Status Build Status Build Status, (*1)

This is a class to show messages with PHP and Javascript. Use it with ANAX MVC., (*2)

You can choose how long you what the message to show or if the message will stay all the time., (*3)

===========, (*4)

User guide:

Just download the class and include it in the php autoloader. After that create a new object of the class, ex:, (*5)

$message = new /Aceer/Message/CMessage();

Then choose what kind of message you want to send (success,danger,warning,info)., (*6)

$message->success("You have successfully logged in!");

You can also supply how long the message will display before it disappear and if value is inputed the message will not disappear., (*7)

$message->success("You have successfully logged in!",3000);
// 3000 = 3 seconds

There are 4 type of messages to send:, (*8)

- danger
    CSS class = 'alert alert-danger';
- success 
    CSS class = 'alert alert-success';
- info 
    CSS class = 'alert alert-info';
- warning 
    CSS class = 'alert alert-warning';

Thay use Twitter Bootstrap css standard but if you want you can make your own default css class values:, (*9)

$message = new /Aceer/Message/CMessage(
    [
        "success" => "some css class",
        "danger" => "some css class",
        "warning" => "some css class",
        "info" => "some css class",
    ]);

The Versions

06/07 2015

dev-master

9999999-dev https://github.com/aceer/message

PHP classes to send a message, can be used in Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Alexander Svensson

framework mvc message anax

25/06 2015

v1.0

1.0.0.0 https://github.com/aceer/message

PHP classes to send a message, can be used in Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Alexander Svensson

framework mvc message anax