Skip to content

rhosocial/yii2-user

Repository files navigation

rhosocial/yii2-user

Common User & Profile Models for Yii 2.

Latest Stable Version License Code Coverage Scrutinizer Quality Score

Introduction

This package consists of two models:

  • User: GUID, ID, Password Hash, IP Address, Timestamp, Password Refresh Token, Auth Key, Source, Status.
  • Profile: GUID (corresponding with GUID), Nickname, Timestamp.

Installation

The preferred way to install this extension is through composer

Either run

php composer.phar require rhosocial/yii2-user:dev-master

or add

"rhosocial/yii2-user": "dev-master"

to the require section of your composer.json

Basic Usage

Once the extension is installed, simply use it in your code by:

class User extends \rhosocial\user\models\User
{
    ...
}

and

class Profile extends \rhosocial\user\models\Profile
{
    ...
}

But the above Profile class does not contain email and phone attributes. The following SimpleProfile contains them (including corresponding rules):

class Profile extends \rhosocial\user\models\SimpleProfile
{
    ...
}

further detailed usage seen in here.

Releases

No releases published

Packages

No packages published

Languages