PHPackages                             bariew/yii2-rbac-cms-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. bariew/yii2-rbac-cms-module

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

bariew/yii2-rbac-cms-module
===========================

Access management from UI

1.0.5(6y ago)61.0k3[2 issues](https://github.com/bariew/yii2-rbac-cms-module/issues)BSD-3-ClausePHP

Since Jul 4Pushed 6y ago4 watchersCompare

[ Source](https://github.com/bariew/yii2-rbac-cms-module)[ Packagist](https://packagist.org/packages/bariew/yii2-rbac-cms-module)[ RSS](/packages/bariew-yii2-rbac-cms-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (11)Used By (0)

Yii2 rbac module.
=================

[](#yii2-rbac-module)

Description
-----------

[](#description)

Manages access to site controller actions. Stores all permissions in database.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist bariew/yii2-rbac-cms-module "*"

```

or add

```
"bariew/yii2-rbac-cms-module": "*"

```

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

Usage
-----

[](#usage)

- Define authManager component in main config components section, you'll need some i18n settings too (example):

```
    'components' => [
    ...
        'authManager'   => [
            'class' => '\yii\rbac\DbManager'
        ],
        'i18n' => [ // this example only if you don't have i18n defined in any other way.
            'translations' => [
                '*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                ],
            ],
        ],
    ],

```

- Include 'rbac' module in modules config section:

```
    'modules' => [
    ...
        'rbac'   => [
            'class' => 'bariew\rbacModule\Module'
        ],
    ],

```

- Apply migrations from module migrations folder. E.g. you may copy those migrations to your application migrations folder and run common yii console migration command.
- Go to rbac/auth-item/index URL and create some roles and permissions, using menu tree with right mouse button.
- Use AuthItem::checkAccess() for beforeAction events and ViewAccess::afterRender() for afterRender event. You may also use Yii::$app-&gt;authManager in common way.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~248 days

Recently: every ~361 days

Total

9

Last Release

2346d ago

Major Versions

0.3.0 → 1.0.02015-09-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/8214f36975034f4134506744cd956e8415491006c1b3512af22bf75f91165f06?d=identicon)[bariew](/maintainers/bariew)

---

Top Contributors

[![bariew](https://avatars.githubusercontent.com/u/827508?v=4)](https://github.com/bariew "bariew (49 commits)")[![burnb](https://avatars.githubusercontent.com/u/5370603?v=4)](https://github.com/burnb "burnb (7 commits)")

---

Tags

cmsrbacyii2moduleyii2-null-cms-module

### Embed Badge

![Health badge](/badges/bariew-yii2-rbac-cms-module/health.svg)

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

###  Alternatives

[2amigos/yii2-usuario

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

298275.5k14](/packages/2amigos-yii2-usuario)[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)[vova07/yii2-rbac-module

The RBAC module for Yii framework.

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

PHPackages © 2026

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