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

rbacredis

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

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.

Changelog

Redis Yii2 RBAC Change Log

1.1.1 July 11, 2017

  • Fix: fix missing .gitattributes

1.1.0 July 11, 2017

  • Chg: remove testing on HHVM and PHP 5.6
  • Chg: update dependencies
  • Enh: adding .gitattributes

1.0.5.1 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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.1 is the latest of 9 releases



BSD-3-Clause license
Stats
24 github stars & 7 github forks
1 downloads in the last day
78 downloads in the last 30 days
10559 total downloads