inovia-team / zfc-user-last-connection-date
Last connection date for ZfcUser module
Installs: 14 037
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 37
Forks: 2
Open Issues: 0
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: 2025-04-12 20:12:57 UTC
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": { "inovia-team/zfc-user-last-connection-date": "dev-master" }
-
Run the command:
$ php composer.phar update
Module Activation
In your application.config.php
file :
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.