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

Abandoned → [yii2bundle/yii2-rbac](/?search=yii2bundle%2Fyii2-rbac)Yii2-extension[Authentication &amp; Authorization](/categories/authentication)

yii2bundle/yii2-rbac
====================

v0.11.0(6y ago)0123MITPHPPHP &gt;=5.3.0

Since Jan 1Pushed 6y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e548bc658cdb4da2f4ab1f04fe8e29bdf36542469b986e7306a86e949ffd3ceb/68747470733a2f2f706f7365722e707567782e6f72672f7969693262756e646c652f796969322d726261632f762f737461626c652e706e67)](https://packagist.org/packages/yii2bundle/yii2-rbac)[![Total Downloads](https://camo.githubusercontent.com/bea97fa1ee93aab216e5a58fa4841bb2cdffac067ccf9f6fca4ba5f32314765f/68747470733a2f2f706f7365722e707567782e6f72672f7969693262756e646c652f796969322d726261632f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yii2bundle/yii2-rbac)

Описание
--------

[](#описание)

Модуль для управления ролями пользователей RBAC.

Ссылки
------

[](#ссылки)

- [Руководство](guide/ru/README.md)
- [Установка](guide/ru/install.md)

Установка
---------

[](#установка)

Устанавливаем зависимость:

```
composer require yii2module/yii2-rbac

```

Объявляем модуль:

```
return [
	'modules' => [
		// ...
		'fixtures' => 'yii2module\rbac\Module',
		// ...
	],
];
```

Документация
------------

[](#документация)

### Поиск и добавление правил

[](#поиск-и-добавление-правил)

Команда поиска правил и добавления в RBAC

```
php yii rbac/rule/add

```

Сканируется файловая система сайта на наличие правил для RBAC. Затем в RBAC добавляются те правила, которых еще нет. Существующие правила в RBAC не затираются.

### Генерация констант

[](#генерация-констант)

Команда генерации констант для ролей, правил и полномочий

```
php yii rbac/const/generate

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Every ~18 days

Recently: every ~9 days

Total

14

Last Release

2446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/375cded217c0e5839177f94abe16dbaf83e2a67d89b03731d1dd276f06e4c3fe?d=identicon)[phpDevMaster](/maintainers/phpDevMaster)

---

Top Contributors

[![untek-developer](https://avatars.githubusercontent.com/u/3309892?v=4)](https://github.com/untek-developer "untek-developer (33 commits)")

---

Tags

rbacyii2auth manager

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/yii2bundle-yii2-rbac/health.svg)](https://phpackages.com/packages/yii2bundle-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)[letyii/yii2-rbac-cached

Cached for yii2 RBAC

112.2k](/packages/letyii-yii2-rbac-cached)

PHPackages © 2026

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