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 yesterday

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 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

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