定制 momzor/zfc-user-last-connection-date 二次开发

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

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

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

Build Status Scrutinizer Code Quality Code Coverage

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

Installation

Get the module

With composer

  1. Add this project and in your composer.json:

    "require": {
        "momzor/zfc-user-last-connection-date": "dev-master"
    }
  2. 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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-04