Flexible user registration and authentication module for Yii


Keywords
User management, yii2, yii2-user, yii2-extension, yii2-modules
License
MIT

Documentation

yii2-user

Latest Stable Version Total Downloads Reference Status Build Status Dependency Status License

Most of web applications provide a way for users to register, log in or reset their forgotten passwords. Rather than re-implementing this on each application, you can use Yii2-user which is a flexible user management module for Yii2 that handles common tasks such as registration, authentication and password retrieval. The latest version includes following features:

  • 注册使用邮箱激活账号
  • 使用社交账户注册
  • 密码找回
  • 账号和个人资料管理
  • 控制台命令
  • 用户管理接口

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist yuncms/yii2-user

or add

"yuncms/yii2-user": "~2.0.0"

to the require section of your composer.json.

Configuring your application

Add following lines to your main configuration file:

'modules' => [
    'user' => [
        'class' => 'yuncms\user\frontend\Module',
    ],
],

Updating database schema

After you downloaded and configured Yii2-user, the last thing you need to do is updating your database schema by applying the migrations:

$ php yii migrate/up --migrationPath=@vendor/yuncms/yii2-user/migrations

Thanks to

License

This is released under the MIT License. See the bundled LICENSE.md for details.