arrilot/sessions
最新稳定版本:1.0.3
Composer 安装命令:
composer require arrilot/sessions
包简介
Use Laravel session Api to work with plain old PHP sessions in any project
README 文档
README
Laravel-like framework agnostic session package
Use Laravel session Api to work with plain-old php sessions in any project
Installation
-
composer require arrilot/sessions -
Register a service provider anywhere in your bootstrap code.
Arrilot\Sessions\SessionProvider::register();
Usage
Arrilot\Sessions\Session is the main class provided by the package.
You can treat this class just like the Laravel Session facade and call literally any method listed here + Session::now() from 5.1.
Example:
use Arrilot\Sessions\Session; Session::flash('message', 'Email was sent');
Note that the package does not actually require laravel session component. It provides Laravel API to work with built-in php sessions ($_SESSION) instead.
统计信息
- 总下载量: 697
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-16