PHPackages                             lawiet/yii2-rolemanager - 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. lawiet/yii2-rolemanager

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

lawiet/yii2-rolemanager
=======================

RBAC with access menu

094PHP

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Lawiet/yii2-rolemanager)[ Packagist](https://packagist.org/packages/lawiet/yii2-rolemanager)[ RSS](/packages/lawiet-yii2-rolemanager/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Role Manager
=================

[](#yii2-role-manager)

Component to use Role Manager with Yii2

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

[](#installation)

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

Either run

```
php composer.phar require lawiet/yii2-rolemanager "dev-master"

```

or add

```
"minimum-stability": "dev",
"prefer-stable": true,
require: {
...
    "lawiet/yii2-rolemanager": "@dev"
...
}

```

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

Role configuration
------------------

[](#role-configuration)

In file `web.php`

```

```

In each file `controllers/xxxController.php` change yii\\web\\Controller for lawiet\\rbac\\web\\Controller

```

```

And remove method behaviors or modify and add the method parent

```

```

Generate principal menu dynamically in your layout add

```

```

Run command

```
php yii migrate  --migrationPath=@lawiet/rbac/migrations --interactive=0

```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% 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/41e0e18f92ca8099b4dc400f0233e7d759301bfa27b4a77e8986479627eaf920?d=identicon)[Lawiet](/maintainers/Lawiet)

---

Top Contributors

[![Lawiet](https://avatars.githubusercontent.com/u/11633133?v=4)](https://github.com/Lawiet "Lawiet (70 commits)")[![jjoy-zz](https://avatars.githubusercontent.com/u/1458424?v=4)](https://github.com/jjoy-zz "jjoy-zz (11 commits)")

### Embed Badge

![Health badge](/badges/lawiet-yii2-rolemanager/health.svg)

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

###  Alternatives

[tg/tgwebvalid

An easy way to validate Telegram Login Widget and Telegram Mini App users on your website using PHP

6827.5k1](/packages/tg-tgwebvalid)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)[kissdigital-com/apple-sign-in-client-secret-generator

PHP package for generating 'client secret' for Sign In with Apple

2125.5k](/packages/kissdigital-com-apple-sign-in-client-secret-generator)[denniseilander/laravel-passport-scopes-restriction

Restrict scopes for different Laravel Passport clients.

1636.3k](/packages/denniseilander-laravel-passport-scopes-restriction)

PHPackages © 2026

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