PHPackages                             marsoltys/yii2user - 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. marsoltys/yii2user

ActiveYii2-extension

marsoltys/yii2user
==================

1.0.1(9y ago)1119MITPHP

Since Nov 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/soltmar/yii2user)[ Packagist](https://packagist.org/packages/marsoltys/yii2user)[ RSS](/packages/marsoltys-yii2user/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

\##NOTE: This is Yii2-User module, which is rewritten version of Yii-User which can be found on

This module allows you to maintain users.

Yii-User Installation
=====================

[](#yii-user-installation)

Download
--------

[](#download)

Download or checkout (SVN/Git) from  and unpack files in your protected/modules/user

Composer
--------

[](#composer)

```
composer require "marsoltys/yii2user:*",

```

Configure
---------

[](#configure)

```
Change your config web.php:
        #...
        'modules'=>[
            #...
            'user' => [
                'class' => 'marsoltys\yii2user\Module',

                # OPTIONALLY YOU CAN CONFIGURE THESE PROPERTIES
                #'userClass' => 'marsoltys\yii2user\components\User', # User component class, you can change this to be your own class but it must be extended from class provided in this comment
                #'identityClass' => 'marsoltys\yii2user\models\User', # User Identity class, you can change this to be your own class but it must be extended from class provided in this comment
                #'userModel' => 'marsoltys\yii2user\models\User',     # User model class, you can change this to be your own class but it must be extended from class provided in this comment
            ],
            #...
        ],

```

Change your config console:

```
    return array(
        #...
        'modules'=>[
            #...

            'user' => [
                'class' => 'marsoltys\yii2user\Module'
            ],

            #...
        ]
        #...
    );

```

Install
-------

[](#install)

1. Run console command:

    ```
     php yii migrate --migrationPath=@marsoltys/yii2user/migrations

    ```
2. Provide admin login, email and password in console when prompted.

\##NOTE##

Please note that "user" component will be configured through this User module. To configure user component classes please see comments in web.php config file of "Configure" section above

\##TODO##

- Fix "Autocomplete" and "Belongsto" components
- Refresh user session if anything changes within user details (logout user after pass change?)
- add activation email option when user is created by admin and status is not active

\##CHANGELOG##

\###1.0.0.2###

- Added bootstrapping through composer

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~58 days

Total

5

Last Release

3585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf5ce65fe44ca3e88017133fe380c61d5390d4c1ea48f205dab26816aab826bf?d=identicon)[soltmar](/maintainers/soltmar)

---

Top Contributors

[![soltmar](https://avatars.githubusercontent.com/u/14175459?v=4)](https://github.com/soltmar "soltmar (69 commits)")[![milorojas](https://avatars.githubusercontent.com/u/15176512?v=4)](https://github.com/milorojas "milorojas (2 commits)")

### Embed Badge

![Health badge](/badges/marsoltys-yii2user/health.svg)

```
[![Health](https://phpackages.com/badges/marsoltys-yii2user/health.svg)](https://phpackages.com/packages/marsoltys-yii2user)
```

PHPackages © 2026

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