定制 icybee/module-users-logins 二次开发

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

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

icybee/module-users-logins

Composer 安装命令:

composer require icybee/module-users-logins

包简介

Record users login times and IPs

关键字:

README 文档

README

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

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.

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.

Prototype methods

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

get_last_login_times

Returns the last five login times for a user:

<?php

var_dump($user->last_login_times);

get_login_count

Returns the number of login for a user:

<?php

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

Requirements

This module requires the CMS Icybee.

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:

{
	"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:

$ 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.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固