gabriel403/g403-session-db
最新稳定版本:1.0.3
Composer 安装命令:
composer require gabriel403/g403-session-db
包简介
Extension to ZF2 to allow sessions to be stored in the database.
关键字:
README 文档
README
Version 0.0.1 Created by Gabriel Baker (Gabriel403)
Introduction
G403SessionDb is a session storage module for Zend Framework 2. Out of the box, G403SessionDb works with Zend\Db. G403SessionDb provides the foundations for adding sessions into the db for your ZF2 site. It is designed to be very simple and easily to extend.
Installation
Main Setup
By cloning project
- Clone this project into your
./vendor/directory.
With composer
-
Add this project in your composer.json:
"require": { "gabriel403/g403-session-db": "dev-master", }
-
Now tell composer to download G403SessionDb by running the command:
$ php composer.phar update
OR
$ php composer.phar require gabriel403/g403-session-db
And type dev-master when asked for a version to pick.
Post installation
-
Enabling it in your
application.config.phpfile.<?php return array( 'modules' => array( // ... 'G403SessionDb', ), // ... );
-
Then Import the SQL schema located in
./vendor/G403SessionDb/data/schema.sql.
Post-Install: Zend\Db
-
If you do not already have a valid Zend\Db\Adapter\Adapter in your service manager configuration, you can copy the one from our config directory
config/g403sessiondb.global.php.distto the project./config/autoload/g403sessiondb.local.php: -
If you want to edit the session options (rememberme time, name, domain etc) then copy
config/g403session. global.php.distto the project./config/autoload/g403session.local.php:
统计信息
- 总下载量: 581
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-02-12