inovia-team / zfc-user-last-connection-date
ZfcUser 模块的最后连接日期
dev-master
2015-12-04 10:16 UTC
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
- zf-commons/zfc-user: 1.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-09-28 17:17:50 UTC
README
介绍
ZfcUserLastConnectionDate 是一个 ZF2 模块,它为每个与 ZfcUser 的连接自动更新用户的最后连接日期。
有关 ZfcUser 的更多信息: ZfcUser
要求
- Zend Framework 2 (最新 master 版本)
- ZfcBase (最新 master 版本)。
- ZfcUser
- PHP 版本 >= 5.4
安装
获取模块
使用 composer
-
在您的 composer.json 中添加此项目
"require": { "inovia-team/zfc-user-last-connection-date": "dev-master" }
-
运行命令
$ php composer.phar update
模块激活
在您的 application.config.php
文件中
return array( 'modules' => array( // ... 'ZfcUserLastConnectionDate', ), // ... );
更新您的模型
通过扩展 ZfcUserLastConnectionDate 用户实体
use ZfcUserLastConnectionDate\Entity\LastConnectionDateUser; class User extends LastConnectionDateUser { }
或者,如果您不想扩展它,您可以使用 Traits
use ZfcUserLastConnectionDate\Entity\LastConnectionTrait; class User extends ZfcUser { use LastConnectionTrait; }
更新您的数据库模式
在 ./vendor/inovia-team/zfc-user-last-connection-date/data/
中有一些 SQL 示例
导航到 http://yourproject/user/login.
配置
没有配置项!
许可证
ZfcLastConnectionDate 在 MIT 许可证 下发布。