定制 bistro/session 二次开发

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

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

bistro/session

最新稳定版本:0.1.0

Composer 安装命令:

composer require bistro/session

包简介

A session abstraction library

README 文档

README

A Session library for PHP 5.3+. Allows different storage engines to be used.

Engines

2 Storage engines are included in the library.

Native

This driver uses the php native $_SESSION array to handle the session data.

$session = new \Bistro\Session\Native;

$timeout = $session->get('timeout');

if ($timeout === null)
{
	$session->set('timeout', time() + 43200);
}

MockArray

There is also a MockArray storage engine to help with unit testing session data. The MockArray session doesn't save state across "requests".

$data = array(
	'test' => "Session data",
	'goes' => "Here"
)

$session = new \Bistro\Session\MockArray($data);

$session->has('test'); // true
$missing = $session->get('missing'); // null

Storage Interface

Check \Bistro\Session\Session for all of the public methods that are available to a session storage engine.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固