Flexible user registration and authentication module for Yii 2.0

Installs: 93

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 2

Type:yii2-extension

dev-main / 1.0.x-dev 2024-01-02 18:39 UTC

This package is auto-updated.

Last update: 2024-04-14 01:52:13 UTC


README

68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667

User extension for Yii2.


php-version yii2-version PHPUnit Codecov PHPStan PHPStan level Code style

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev --prefer-dist yii2-extensions/user

or add

"yii2-extensions/user": "dev-main"

to the require-dev section of your composer.json file.

Configuration

User extension requires a database connection. You should configure it in your application configuration like the following:

config/components.php

<?php

declare(strict_types=1);

use yii\db\Connection;

return [
    'components' => [
        'db' => [
            'class' => Connection::class,
            'dsn' => 'sqlite:' . dirname(__DIR__) . '/yiitest.sq3',
        ],
    ],
];

All configuration is managed by yiisoft/config, and you can access it at the config folder.

Usage

Check the documentation docs to learn about usage.

Testing

Check the documentation testing to learn about testing.

Our social networks

Twitter

License

The MIT License. Please see License File for more information.