PHP 5.6+ Redis / RBAC integration for the Yii framework

Installs: 9 584

Dependents: 0

Suggesters: 0

Security: 0

Stars: 24

Watchers: 6

Forks: 7

Open Issues: 2


1.1.1 2017-07-11 07:53 UTC

This package is not auto-updated.

Last update: 2024-02-17 15:39:26 UTC


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.