inovia-team/zfc-user-last-connection-date

Last connection date for ZfcUser module

dev-master 2015-12-04 10:16 UTC

This package is not auto-updated.

Last update: 2024-04-13 14:34:36 UTC


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": {
        "inovia-team/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/inovia-team/zfc-user-last-connection-date/data/

Navigate to http://yourproject/user/login.

Configuration

There is nothing to configure !

License

ZfcLastConnectionDate is released under the MIT License.