PHPackages                             sweelix/yii2-redis-rbac - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sweelix/yii2-redis-rbac

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

sweelix/yii2-redis-rbac
=======================

PHP 5.6+ Redis / RBAC integration for the Yii framework

1.1.1(8y ago)2411.7k↑25%7[2 issues](https://github.com/pgaultier/yii2-redis-rbac/issues)BSD-3-ClausePHPPHP &gt;=5.6.0

Since May 2Pushed 8y ago4 watchersCompare

[ Source](https://github.com/pgaultier/yii2-redis-rbac)[ Packagist](https://packagist.org/packages/sweelix/yii2-redis-rbac)[ RSS](/packages/sweelix-yii2-redis-rbac/feed)WikiDiscussions devel Synced 1mo ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

Redis Yii2 RBAC integration
===========================

[](#redis-yii2-rbac-integration)

This extension allow the developper to use REDIS database as the RBAC repository.

[![Latest Stable Version](https://camo.githubusercontent.com/e6c0a35ce398d8341b2e20120bf7843f0c4187caa398774c86a51001cac81587/68747470733a2f2f706f7365722e707567782e6f72672f737765656c69782f796969322d72656469732d726261632f762f737461626c65)](https://packagist.org/packages/sweelix/yii2-redis-rbac)[![Build Status](https://camo.githubusercontent.com/c6a78cb26446dbf8cd37fe1b9cfe9ce1e7538e827d8c9f4200749b75ea9742af/68747470733a2f2f6170692e7472617669732d63692e6f72672f706761756c746965722f796969322d72656469732d726261632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pgaultier/yii2-redis-rbac)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0c735d96d37982df7854e7f8e9aa32a1f4c5f74ad95b304ec71a38461e472ac0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706761756c746965722f796969322d72656469732d726261632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f30d8c7a06fa149ec6e3909bb6b89a1c616f12836f30f2992472102abf65b0fa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706761756c746965722f796969322d72656469732d726261632f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=master)[![License](https://camo.githubusercontent.com/73fa88a3114508a5ce62f324119ca6fd9e23cff3636b6c38bb42f9b167c76df5/68747470733a2f2f706f7365722e707567782e6f72672f737765656c69782f796969322d72656469732d726261632f6c6963656e7365)](https://packagist.org/packages/sweelix/yii2-redis-rbac)

[![Latest Development Version](https://camo.githubusercontent.com/da9290457cc26b65f8faba577f924f94512f24929311567c357a38320d6772fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d646576656c2d79656c6c6f77677265656e2e737667)](https://packagist.org/packages/sweelix/yii2-redis-rbac)[![Build Status](https://camo.githubusercontent.com/0a2a7ccd0e8e54699b1c1295ec438fb1aa8da50b110a728c29e3669aba785230/68747470733a2f2f7472617669732d63692e6f72672f706761756c746965722f796969322d72656469732d726261632e7376673f6272616e63683d646576656c)](https://travis-ci.org/pgaultier/yii2-redis-rbac)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ef1bfd502da1fc65eb81632c33b085701fbd98c438cdbffba8f7efe43c30422d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706761756c746965722f796969322d72656469732d726261632f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c)](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=devel)[![Code Coverage](https://camo.githubusercontent.com/6c9002b2bc28b8dff70c569e4a9c0353538ad13b7bcecfbacc70ac26b5383dfa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706761756c746965722f796969322d72656469732d726261632f6261646765732f636f7665726167652e706e673f623d646576656c)](https://scrutinizer-ci.com/g/pgaultier/yii2-redis-rbac/?branch=devel)

Installation
------------

[](#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
------------

[](#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](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html)

Running the tests
-----------------

[](#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
------------

[](#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.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Total

9

Last Release

3228d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/545714?v=4)[pgaultier](/maintainers/pgaultier)[@pgaultier](https://github.com/pgaultier)

---

Top Contributors

[![pgaultier](https://avatars.githubusercontent.com/u/545714?v=4)](https://github.com/pgaultier "pgaultier (76 commits)")

---

Tags

rbacredisyii2redisrbacyii2

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/sweelix-yii2-redis-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/sweelix-yii2-redis-rbac/health.svg)](https://phpackages.com/packages/sweelix-yii2-redis-rbac)
```

###  Alternatives

[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

409.1k](/packages/budyaga-yii2-users)[letyii/yii2-rbac-cached

Cached for yii2 RBAC

112.2k](/packages/letyii-yii2-rbac-cached)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
