sweelix / yii2-redis-rbac
PHP 5.6+ Redis / RBAC integration for the Yii framework
Installs: 10 559
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 6
Forks: 7
Open Issues: 2
Type:yii2-extension
Requires
- php: >=5.6.0
- sweelix/guid: ~1.0
- yiisoft/yii2: ~2.0
- yiisoft/yii2-redis: ~2.0
Requires (Dev)
- php: >=5.6.0
- codeception/codeception: ~2.2
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.
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.