sweelix/yii2-redis-rbac PHP 5.6+ Redis / RBAC integration for the Yii framework


Redis Yii2 RBAC integration

This extension allow the developper to use REDIS database as the RBAC repository.

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage License

Latest Development Version Build Status Scrutinizer Code Quality Code Coverage


If you use Packagist for installing packages, then you can update your composer.json like this :

    "require": {
        "sweelix/yii2-redis-rbac": "*"

Howto use it

Add extension to your configuration

return [
    'components' => [
        'authManager' => [
            'class' => 'sweelix\rbac\redis\Manager',
            'db' => 'redis',
        // ...

For further instructions refer to the related section in the Yii Definitive Guide

Running the tests

Before running the tests, you should edit the file tests/config/redis.php and change the config to match your environment.


All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch , and send us a pull request.


Redis Yii2 RBAC Change Log March 15, 2017

Fix: fix bad commit for test config

1.0.5 March 15, 2017

Chg: update dependencies Chg: adding PHP 7.1 testing

1.0.4 December 6, 2016

Chg: Update dependencies

1.0.3 November 2, 2016

Chg: Update dependencies Fix: Added getChildRoles($roleName)

1.0.2 June 22, 2016

Fix: Update documentation Chg: Update dependencies

1.0.1 May 2, 2016

Fix: Remove forced type in canAddChild() to allow correct build

1.0.0 May 2, 2016

Chg: Initial public release


GitHub Stars
GitHub Forks


Comments is the latest of 7 releases

BSD-3-Clause license
16 github stars & 4 github forks
0 downloads in the last day
156 downloads in the last 30 days
552 total downloads