Download the PHP package sergmoro1/yii2-user without Composer
On this page you can find all versions of the php package sergmoro1/yii2-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sergmoro1/yii2-user
More information about sergmoro1/yii2-user
Files in sergmoro1/yii2-user
Package yii2-user
Short Description User registration by email with confirmation. Users management. Login with OAuth2 credensials. Predefined for role based access control.
License MIT
Informations about the package yii2-user
Yii2 module for user registration and management
Advantages
- registration, email confirmation, reset password, authentification;
- social networks OAuth2 authentification (avatar available);
- backend users management.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist sergmoro1/yii2-user
or add
"sergmoro1/yii2-user": "^1.1"
to the require section of your composer.json.
Run migration
php yii migrate --migrationPath=@vendor/sergmoro1/yii2-user/src/migrations
Configuration
Add to the configuration file used modules definitions, OAuth2 and mailler components.
Redeclare getAvatarImage()
, something like this (if sergmoro1/yii2-uploader
is used) or any other way.
Usage
Add action for OAuth2 authentification with social network accounts to controller.
Place the widget somewhere in the view.
Social icons can be defined in Yii::$app->params['icons']
. Their use is determined by widgets/views/socialCredentials.php
.
All versions of yii2-user with dependencies
yiisoft/yii2 Version *
yiisoft/yii2-authclient Version ^2.1
sergmoro1/yii2-lookup Version ^1.1