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

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

atans/yii2-rbac
===============

An RBAC extension for yii2

1.0.0(9y ago)031MITPHP

Since Jan 8Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii2 RBAC Extension
===================

[](#yii2-rbac-extension)

An RBAC extension for yii2

Installation
============

[](#installation)

Step 1
------

[](#step-1)

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

Either run

```
composer atans/yii2-rbac "*"

```

or add

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

```

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

Step 3
------

[](#step-3)

Update database schema

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

```

Usage
-----

[](#usage)

```
    // config/main.php

    'modules' => [
        'rbac' => 'atans\rbac\Module',
    ],
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3459d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2189764?v=4)[AS](/maintainers/atans)[@atans](https://github.com/atans)

---

Top Contributors

[![atans](https://avatars.githubusercontent.com/u/2189764?v=4)](https://github.com/atans "atans (18 commits)")

---

Tags

rbacyii2extension

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/atans-yii2-rbac/health.svg)](https://phpackages.com/packages/atans-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)[kakadu-dev/yii2-jwt-auth

Extension provide JWT auth for Yii2

105.8k](/packages/kakadu-dev-yii2-jwt-auth)

PHPackages © 2026

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