Common User & Profile Models for Yii 2.
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.
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
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.