定制 aceer/message 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aceer/message

最新稳定版本:v1.0

Composer 安装命令:

composer require aceer/message

包简介

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

README 文档

README

Build Status Build Status Build Status

This is a class to show messages with PHP and Javascript. Use it with ANAX MVC.

You can choose how long you what the message to show or if the message will stay all the time.

=========== User guide:

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

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

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

$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.

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

There are 4 type of messages to send:

- 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:

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

统计信息

  • 总下载量: 32
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-26