momzor/zfc-user-last-connection-date
最新稳定版本:1.0
Composer 安装命令:
composer require momzor/zfc-user-last-connection-date
包简介
Last connection date for ZfcUser module
README 文档
README
Introduction
ZfcUserLastConnectionDate is a ZF2 module providing an automatic update of user's last connection date for each connection with ZfcUser.
For more informations about ZfcUser : ZfcUser
Requirements
- Zend Framework 2 (latest master)
- ZfcBase (latest master).
- ZfcUser
- PHP version >= 5.4
Installation
Get the module
With composer
-
Add this project and in your composer.json:
"require": { "momzor/zfc-user-last-connection-date": "dev-master" }
-
Run the command:
$ php composer.phar update
Module Activation
In your application.config.phpfile :
return array( 'modules' => array( // ... 'ZfcUserLastConnectionDate', ), // ... );
Update Your Model:
By Extending ZfcUserLastConnectionDate User entity:
use ZfcUserLastConnectionDate\Entity\LastConnectionDateUser; class User extends LastConnectionDateUser { }
OR if you don't want to extends it you can use the Trait :
use ZfcUserLastConnectionDate\Entity\LastConnectionTrait; class User extends ZfcUser { use LastConnectionTrait; }
Update Your database schema:
There are some SQL example in ./vendor/momzor/zfc-user-last-connection-date/data/
Navigate to http://yourproject/user/login.
Configuration
There is nothing to configure !
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-03-04