Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZfcUserLastConnectionDate

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages