https://github.com/pgaultier/yii2-redis-rbac
Yii2 Redis / RBAC integration
https://github.com/pgaultier/yii2-redis-rbac
rbac redis yii2
Last synced: 10 months ago
JSON representation
Yii2 Redis / RBAC integration
- Host: GitHub
- URL: https://github.com/pgaultier/yii2-redis-rbac
- Owner: pgaultier
- License: other
- Created: 2016-04-28T20:01:01.000Z (about 10 years ago)
- Default Branch: devel
- Last Pushed: 2017-07-11T07:53:43.000Z (almost 9 years ago)
- Last Synced: 2025-08-03T23:48:30.952Z (11 months ago)
- Topics: rbac, redis, yii2
- Language: PHP
- Homepage:
- Size: 84 KB
- Stars: 24
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Redis Yii2 RBAC integration
===========================
This extension allow the developper to use REDIS database as the RBAC repository.
[](https://packagist.org/packages/sweelix/yii2-redis-rbac)
[](https://travis-ci.org/pgaultier/yii2-redis-rbac)
[](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=master)
[](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=master)
[](https://packagist.org/packages/sweelix/yii2-redis-rbac)
[](https://packagist.org/packages/sweelix/yii2-redis-rbac)
[](https://travis-ci.org/pgaultier/yii2-redis-rbac)
[](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=devel)
[](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=devel)
Installation
------------
If you use Packagist for installing packages, then you can update your composer.json like this :
``` json
{
"require": {
"sweelix/yii2-redis-rbac": "*"
}
}
```
Howto use it
------------
Add extension to your configuration
``` php
return [
//....
'components' => [
'authManager' => [
'class' => 'sweelix\rbac\redis\Manager',
'db' => 'redis',
],
// ...
],
];
```
For further instructions refer to the [related section in the Yii Definitive Guide](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html)
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 ](http://nvie.com/posts/a-successful-git-branching-model/), and send us a pull request.