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

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

ayaalkaplin/yii2-rbac
=====================

Role Based Access Controll for yii2

v0.0.2(7y ago)05MITPHP

Since Mar 13Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Role Based Access Controll for yii2
===================================

[](#role-based-access-controll-for-yii2)

Role Based Access Controll for yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ayaalkaplin/yii2-rbac "*"

```

or add

```
"ayaalkaplin/yii2-rbac": "*"

```

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

Models use yii2 DbManager class and required to run migration:

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

```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by adding url on your navigation bar:

```
Url::toRoute('/rbac/permission/index');
Url::toRoute('/rbac/role/index');
Url::toRoute('/rbac/user/index');
```

This controllers are allowed for `admin` role

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2618d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8961054d78a8136322305e9bbce516b1979da7fc30c08ee80c40bf86009d3628?d=identicon)[uraankhayayaal](/maintainers/uraankhayayaal)

---

Tags

rbacyii2extension

### Embed Badge

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

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

###  Alternatives

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