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.
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 theconfig
folder.
Check the documentation docs to learn about usage.
Check the documentation testing to learn about testing.
The MIT License. Please see License File for more information.