litto/message
Composer 安装命令:
composer require litto/message
包简介
Flash Message for showing Errors in PHP applications
README 文档
README
Display Message Simple Library for PHP projects like Errors, Warning, Success , Notices.etc..
##How to Install?
Install Using Composer or Direcly you can download from the Github Code You can install via composer by using this command:-
composer require litto/message:v2.0
##How to Use?
- Always remember to start session in your application using session-start();
- Copy the Message.php in Vendor folder or in your folder of your choice
- Include The file using autoload or using include function
- For Setting Message pass like:-
$message = new Message('Your Message Text','Messagetype string'); $message->setMessage();
Message Type Strings - error,message,warning
- To Display call it like:-
- The message display will be using the boostrap alert styles. if you want to change the design class, you can chnage in the Message.php file
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-02-04