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

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

juliardi/yii2-simple-rbac
=========================

Simple RBAC module for Yii 2 framework

1.0.0(9y ago)0381MITPHPPHP &gt;=5.4.0

Since Jul 26Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

Yii2 Simple RBAC [![Status](https://camo.githubusercontent.com/bdb5c75b79c510c6b0c3472ac5d8163c44429f0e96070eb83cd8e1003326df33/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d646576656c6f706d656e742d79656c6c6f772e737667)](https://camo.githubusercontent.com/bdb5c75b79c510c6b0c3472ac5d8163c44429f0e96070eb83cd8e1003326df33/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d646576656c6f706d656e742d79656c6c6f772e737667) [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#yii2-simple-rbac--)

Simple RBAC module for Yii 2 Framework

**Caution : This package is still in development stage. Please do not use it for now.**

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

[](#installation)

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

Either run

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

```

or add

```
"juliardi/yii2-simple-rbac": "*"

```

to the require section of your `composer.json` file and then run

```
php composer.phar update

```

Setup
-----

[](#setup)

Once the extension is installed, you must first set it up by :

1. Register yii2-simple-rbac as a module in `config\web.php`. Add this code before `return $config;` statement :

    ```
    $config['bootstrap'][] = 'simplerbac';
        $config['modules']['simplerbac'] = [
            'class' => 'juliardi\simplerbac\Module',
            'db' => 'db', //you can change this in case you are using different database for access control
        ];

    ```
2. Run migrations

    ```
    php yii migrate/up --migrationPath=@juliardi/simplerbac/migrations

    ```

    or in case you are using different database (we assume here as `db2`):

    ```
    php yii migrate/up --migrationPath=@juliardi/simplerbac/migrations --db=db2

    ```
3. Create 'user' table with a foreign key to table 'rbac\_role'. You can see an example of yii2 migrations in `examples\migrations` directory.
4. Generate the model and CRUD of 'user' table using Gii
5. Implements `juliardi\simplerbac\base\UserRbacInterface` in your User model. You can see an example of yii2 model in `examples\models` directory.
6. You can now access it by visiting :

```
http://yourproject.dev/index.php?r=simplerbac

```

Usage
-----

[](#usage)

Once the extension is configured, simply use it by :

1. Extends `juliardi/simplerbac/base/Controller` in your controller
2. That's all. You can set your access rules for your action by accessing :

```
http://yourproject.dev/index.php?r=simplerbac

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3623d ago

Major Versions

0.1.0 → 1.0.02016-07-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c34580489328b0909c2286319ed03cb235243f18a5d59dde55656d1862171c3?d=identicon)[juliardi](/maintainers/juliardi)

---

Top Contributors

[![juliardi](https://avatars.githubusercontent.com/u/4223302?v=4)](https://github.com/juliardi "juliardi (25 commits)")

---

Tags

Simplerbacyii2extension

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13725.7k50](/packages/skeeks-cms)[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)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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