dreamaker/affair
Composer 安装命令:
composer require dreamaker/affair
包简介
this works exactly like sessions, it will help you perform save items in session and retrieve them
README 文档
README
Table of Contents
Install
To install the Affair
first download via composer by running the command composer require dreamaker\affair
if you do not have composer you could just clone this repo
after download
Then include or into your project directory and put this at the top of you class or file
use Dreamaker\Affair\Affair;
Documentation
Affair::put($key, $value)
This method is used to save items into the session, but adding a key and value
Affair::get($key)
This method is used to retrieve items from a session
Affair::all()
This returns all session saved
To start a session, all you have to do is instantiate a new affair class
$affair = new Affair;
This will start a session
Affair::destroy()
This will destroy all session variables in existence
Affair::exists($key)
This will return true if the session exists with the $key parameter passed into it otherwise false
License
Affair is free software distributed under the terms of the MIT license.
Contribution guidelines
Please report any issue you find in the issues page.
Pull requests are welcome.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-12