irfa/php-flash-message
Composer 安装命令:
composer require irfa/php-flash-message
包简介
"Flash Message for PHP"
README 文档
README
Configuration File Irfa/Flashmsg/config.php
Basic Usage
<?php require_once 'Autoloader.php'; use Irfa\Flashmsg\Flash; ...
Set Flash Message
You are free to set this message type, change css class or message view in config file.
Flash::set(key , message, type);
... ///SET FLASH Fail Flash::set('fail-msg' , 'Description is required','fail'); ///SET FLASH Success Flash::set('success-msg' , 'Update Success','success'); ///SET FLASH Info Flash::set('info-msg' , 'Please wait 1 minutes','success'); ///SET FLASH Warning Flash::set('warning-msg' , 'Username or Password Invalid','warning'); ///SET FLASH general Flash::set('general-msg' , 'Hello, i'm Message','general'); ///SET FLASH Other Flash::set('other-msg' , 'Just Other Message','other'); ...
Get Flash Message
Flash::get(key);
... ///GET FLASH MESSAGE Flash::get('msg'); ...
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-20