PHPackages                             cakebake/yii2-accounts - 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. cakebake/yii2-accounts

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

cakebake/yii2-accounts
======================

User, manage, login and profile module for yii2 framework

4592PHP

Since Feb 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/cakebake/yii2-accounts)[ Packagist](https://packagist.org/packages/cakebake/yii2-accounts)[ RSS](/packages/cakebake-yii2-accounts/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-accounts (!this plugin is not currently developed!)
========================================================

[](#yii2-accounts-this-plugin-is-not-currently-developed)

User, manage, login and profile module for yii2 framework

### Pre-Installation

[](#pre-installation)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install the package using the following command:

```
php composer.phar require --prefer-dist cakebake/yii2-accounts "dev-master"

```

or add

```
"cakebake/yii2-accounts": "dev-master"

```

to the require section of your `composer.json` file and run `php composer.phar update`.

### Configuration

[](#configuration)

To access the module, you need to add this to your application/console configuration (without the dots :P):

```
...
'name' => 'My Application Name', //for emails like account activation, password reset, ...
...
'params' => [
    ...
    'supportEmail' => 'support@example.com', //form emails like account activation, password reset, ...
    ...
]
...
'components' => [
    ...
    'user' => [
        'class' => 'cakebake\accounts\components\User',
    ],
    'authManager' => [
        'class' => 'cakebake\accounts\components\AuthManager',
    ],
    ...
],
...
'modules' => [
    ...
    'accounts' => [
        'class' => 'cakebake\accounts\Module',
    ],
    'actionlog' => [
        'class' => 'cakebake\actionlog\Module',
    ],
    ...
],
...

```

### Installation

[](#installation)

Check your database settings and run migrations from your console. For more informations see [Database Migration Documentation](http://www.yiiframework.com/doc-2.0/guide-console-migrate.html#applying-migrations)

DB Table for accounts:

`php yii migrate --migrationPath=@vendor/cakebake/yii2-accounts/migrations/`

DB Table for RBAC:

`php yii migrate --migrationPath=@yii/rbac/migrations/`

DB Table for ActionLog:

`php yii migrate --migrationPath=@vendor/cakebake/yii2-actionlog/migrations/`

### Usage

[](#usage)

Open your website with URI "/accounts/user/login" and sign in by:

```
Username: admin
Password: password

```

or

```
Username: user
Password: password

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f0c610f1daae44aca882e9f8319422fc19d8fc9fa727051c005722c6eb8e5fe?d=identicon)[cakebake](/maintainers/cakebake)

---

Top Contributors

[![cakebake](https://avatars.githubusercontent.com/u/7462226?v=4)](https://github.com/cakebake "cakebake (155 commits)")

### Embed Badge

![Health badge](/badges/cakebake-yii2-accounts/health.svg)

```
[![Health](https://phpackages.com/badges/cakebake-yii2-accounts/health.svg)](https://phpackages.com/packages/cakebake-yii2-accounts)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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