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

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

yii2cmf/yii2-rbac-module
========================

RBAC module that allows you to edit roles, permissions, and rules using the web interface.

072PHP

Since Feb 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yii2cmf/yii2-rbac-module)[ Packagist](https://packagist.org/packages/yii2cmf/yii2-rbac-module)[ RSS](/packages/yii2cmf-yii2-rbac-module/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

RBAC module
===========

[](#rbac-module)

RBAC module that allows you to edit roles, permissions and rules using the web interface.

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

[](#installation)

The preferred way to install this extension is through composer.

```
$ composer require yii2cmf/yii2-rbac-module

```

or add

```
"yii2cmf/yii2-rbac-module": "*"

```

to the require section of your composer.json file.

In config/web.php

```
'modules' => [
    ...
    'rbac' => [
        'class' => 'app\modules\rbac\Module',
        // Excluded Modules
        'exclude' => ['gii', 'debug'],

        // Set rules path
        'rules' => ['app\modules\rbac\rules', 'app\commands', '...'],
    ],
    ...
];
```

##### Apply migrations

[](#apply-migrations)

```
php yii migrate/up --migrationPath=@vendor/yii2cmf/yii2-rbac-module/migrations

```

##### Module Default Page

[](#module-default-page)

 or

##### Update Permissions

[](#update-permissions)

[![update_permissions](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdatePerm2.png)](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdatePerm2.png)

##### Update Permissions

[](#update-permissions-1)

[![update-permissions](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdatePerm1.png)](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdatePerm1.png)

##### Default

[](#default)

[![index](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/RolesIndex.png)](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/RolesIndex.png)

##### Add Permission Rule

[](#add-permission-rule)

[![update-rule](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdateRule.png)](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/UpdateRule.png)

##### Add User Rule

[](#add-user-rule)

[![add-rule](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/AddRule.png)](https://raw.githubusercontent.com/shandyrov/images/master/modules/rbac/adminlte2/AddRule.png)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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/a46fcb2005984f02e622b981f041afb6568821fe8fc9a714736f601f0aa640ea?d=identicon)[yii2cmf](/maintainers/yii2cmf)

---

Top Contributors

[![shandyrov](https://avatars.githubusercontent.com/u/7609703?v=4)](https://github.com/shandyrov "shandyrov (36 commits)")

### Embed Badge

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

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

###  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)
