sweelix/yii2-redis-rbac

PHP 5.6+ Redis / RBAC integration for the Yii framework

Installs: 10 551

Dependents: 0

Suggesters: 0

Security: 0

Stars: 24

Watchers: 6

Forks: 7

Open Issues: 2

Type:yii2-extension

1.1.1 2017-07-11 07:53 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:34:55 UTC


README

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

Installation

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.

Contributing

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.