2017 © Pedro Peláez
 

icanboogie-module module-users-logins

Record users login times and IPs

image

icybee/module-users-logins

Record users login times and IPs

  • Wednesday, July 24, 2013
  • by olvlvl
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Users logins

The Users logins module (users.logins) records users login times and IPs., (*1)

Event hooks

Icybee\Modules\Users\DeleteOperation::process:before

An event hook is attache to the process:before event of Icybee\Modules\Users\DeleteOperation instances to delete the records associate with a user, before the user is deleted., (*2)

Icybee\Modules\Users\LoginOperation::process

An event hook is attached to the process event of Icybee\Modules\Users\LoginOperation instances to record the time and IP of the user loggin in., (*3)

Prototype methods

The following prototype methods are added to the user object (Icybee\Modules\Users\User)., (*4)

get_last_login_times

Returns the last five login times for a user:, (*5)

<?php

var_dump($user->last_login_times);

get_login_count

Returns the number of login for a user:, (*6)

<?php

echo "Number of login for {$user->name}: {$user->login_count}";

Requirements

This module requires the CMS Icybee., (*7)

Installation

The recommended way to install this module is through composer. Create a composer.json file and run php composer.phar install command to install it:, (*8)

{
    "minimum-stability": "dev",
    "require": {
        "icybee/module-users-logins": "*"
    }
}

Cloning the repository

The package is available on GitHub, its repository can be cloned with the following command line:, (*9)

$ git clone git://github.com/Icybee/module-users-logins.git users.logins

License

This module is licensed under the New BSD License - See the LICENSE file for details., (*10)

The Versions

24/07 2013

1.0.x-dev

1.0.9999999.9999999-dev

Record users login times and IPs

  Sources   Download

BSD-3-Clause

The Requires

 

login stats

24/07 2013

dev-master

9999999-dev

Record users login times and IPs

  Sources   Download

BSD-3-Clause

The Requires

 

login stats