PHPackages                             vova07/yii2-users-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. vova07/yii2-users-module

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

vova07/yii2-users-module
========================

The users module for Yii framework.

0.1.3(11y ago)2448015[6 issues](https://github.com/vova07/yii2-users-module/issues)[1 PRs](https://github.com/vova07/yii2-users-module/pulls)BSD-3-ClausePHP

Since Aug 4Pushed 10y ago8 watchersCompare

[ Source](https://github.com/vova07/yii2-users-module)[ Packagist](https://packagist.org/packages/vova07/yii2-users-module)[ RSS](/packages/vova07-yii2-users-module/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (5)Used By (0)

Yii2 users module.
==================

[](#yii2-users-module)

This module provide a users managing system for your yii2 application.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist vova07/yii2-users-module "*"

```

or add

```
"vova07/yii2-users-module": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Add `yii2-users-module` to `module` section of each application config:

```
'modules' => [
    'users' => [
        'class' => 'vova07\users\Module',
        'requireEmailConfirmation' => false, // By default is true. It mean that new user will need to confirm their email address.
        'robotEmail' => 'my@robot.email', // E-mail address from that will be sent all `users` emails.
        'robotName' => 'My Robot Name', // By default is `Yii::$app->name . ' robot'`.
        'activationWithin' => 86400, // The time before a sent activation token becomes invalid.
        'recoveryWithin' => 14400, // The time before a sent recovery token becomes invalid.
        'recordsPerPage' => 10, // Users pe page.
        'adminRoles' => ['superadmin', 'admin'], // User roles that can access backend module.
    ]
]
```

Add or edit `user` component section:

```
'user' => [
    'class' => 'yii\web\User',
    'identityClass' => 'vova07\users\models\User',
    'loginUrl' => ['/users/guest/login']  // For frontend app
    // 'loginUrl' => ['/users/admin/login']  // For backend app
]
```

Add or edit `authManager` component section:

```
'authManager' => [
    'class' => 'yii\rbac\PhpManager',
    'defaultRoles' => [
        'user',
        'admin',
        'superadmin'
    ],
    'itemFile' => '@vova07/rbac/data/items.php',
    'assignmentFile' => '@vova07/rbac/data/assignments.php',
    'ruleFile' => '@vova07/rbac/data/rules.php',
]
```

Run module migration:

```
php yii migrate --migrationPath=@vova07/users/migrations
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
Yii::$app->getModule('users');
```

By default will be created one `superadmin` user with login `admin` and password `admin12345`.

After installation you'll be able to access below links (relative to your site domain):

### Frontend:

[](#frontend)

- `/users/` - All users page
- `/users/admin/` - Admin page
- `/login/` - Log In page
- `/logout/` - Log Out page
- `/signup/` - Sign Up page
- `/recovery/` - Password recovery page
- `/resend/` - Resend email activation token
- `/activation/` - Accaunt activation page
- `/recovery-confirmation/` - Password reset page
- `/my/settings/email/` - Email change page
- `/my/settings/password/` - Password change page
- `/my/settings/update/` - Profile update page

### Backend

[](#backend)

You'll need to specify universal route `'//' => '//'` in your config file to access module actions.

- `/users/admin/login/` - Log In page
- `/users/admin/logout/` - Log Out page
- `/users/crud/index/` - All users page
- `/users/crud/view/` - User page
- `/users/crud/create/` - Create new user page
- `/users/crud/update/` - Update user page
- `/users/crud/delete/` - Delete one user
- `/users/crud/batch-delete/` - Delete more users

Dependences
-----------

[](#dependences)

- [yii2-control-widget](https://github.com/vova07/yii2-control-widget)
- [yii2-rbac-module](https://github.com/vova07/yii2-rbac-module)
- [yii2-swiftmailer](https://github.com/yiisoft/yii2/tree/master/extensions/swiftmailer)
- [yii2](https://github.com/yiisoft/yii2)

###  Health Score

31

↑

LowBetter than 68% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Total

4

Last Release

4116d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2714082?v=4)[Vasile C.](/maintainers/vova07)[@vova07](https://github.com/vova07)

---

Top Contributors

[![vova07](https://avatars.githubusercontent.com/u/2714082?v=4)](https://github.com/vova07 "vova07 (32 commits)")[![keltstr](https://avatars.githubusercontent.com/u/4305053?v=4)](https://github.com/keltstr "keltstr (3 commits)")[![trancesmile](https://avatars.githubusercontent.com/u/1496807?v=4)](https://github.com/trancesmile "trancesmile (3 commits)")[![nepster-web](https://avatars.githubusercontent.com/u/5681979?v=4)](https://github.com/nepster-web "nepster-web (1 commits)")

---

Tags

userprofileyii2modulemodulesprofilesmanagementUsersyii 2account

### Embed Badge

![Health badge](/badges/vova07-yii2-users-module/health.svg)

```
[![Health](https://phpackages.com/badges/vova07-yii2-users-module/health.svg)](https://phpackages.com/packages/vova07-yii2-users-module)
```

###  Alternatives

[2amigos/yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension

298275.5k14](/packages/2amigos-yii2-usuario)[vova07/yii2-rbac-module

The RBAC module for Yii framework.

191.2k2](/packages/vova07-yii2-rbac-module)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

409.1k](/packages/budyaga-yii2-users)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
