2017 © Pedro Peláez
 

yii2-extension yii2-user

User management functionalities.

image

nkostadinov/yii2-user

User management functionalities.

  • Friday, August 11, 2017
  • by phreakbg
  • Repository
  • 6 Watchers
  • 10 Stars
  • 338 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Yii2 User module Build Status

Just another user module management functionalities., (*1)

  • Optional self registration via front end
  • Lost password retrieval(optional)
  • User administration interface
  • Flexible access control
  • Console commnads(TODO)
  • Advanced user (optional)

Installation

1. Download Yii2-user using composer

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist nkostadinov/yii2-user "*"

or add, (*4)

"nkostadinov/yii2-user": "*"

to the require section of your composer.json file., (*5)

2. Configure your application

Add following lines to your main configuration file:, (*6)

'components' => [
    'user' => [
        'class' => 'nkostadinov\user\components\User',
    ],
],
'modules' => [
    'user' => [
        'class' => 'nkostadinov\user\Module',
    ],
],

Step 3: Update database schema

NOTE: Make sure that you have properly configured db application component., (*7)

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

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

How to run tests

Install codeception globally:, (*9)

$ composer global require "codeception/codeception=*" "codeception/specify=*" "codeception/verify=*"

Install globally the composer's asset plugin:, (*10)

$ composer global require "fxp/composer-asset-plugin:~1.1.0"

Go to nkostadinov/yii2-user directory and run:, (*11)

$ composer update

Build the codeception actors:, (*12)

$ codecept build

Create a new database called 'user_test':, (*13)

$ mysql -e 'create database user_test;'

Run the migrations:, (*14)

$ php tests/_app/yii migrate --interactive=0

Advanced user

The yii2-user extension has the following additional functionalities that can be added on demand:, (*15)

  • [Password aging] (docs/PASSWORD_AGING.md)
  • [Password history policy] (docs/PASSWORD_HISTORY_POLICY.md)
  • [Account locking policy] (docs/ACCOUNT_LOCKING_POLICY.md)
  • [First login policy] (docs/FIRST_LOGIN_POLICY.md)

Admin panel

You can find the admin panel on /user/admin/index route. In order to set proper permissions, change the access rules of the controller via the $adminRules property of the User component. Defaults to:, (*16)

[
    [
        'allow' => true,
        'roles' => ['@']
    ]
]

The Versions

11/08 2017

dev-master

9999999-dev

User management functionalities.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Nikola Kostadinov

user extension yii2

11/08 2017

dev-feature/vue

dev-feature/vue

User management functionalities.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Nikola Kostadinov

user extension yii2

10/03 2017

dev-laravel-mix

dev-laravel-mix

User management functionalities.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Nikola Kostadinov

user extension yii2

16/03 2016

0.1-beta

0.1.0.0-beta

User management functionalities.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Nikola Kostadinov

user extension yii2