PHPackages                             gvasilopulos/yii2-rbacfe - 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. gvasilopulos/yii2-rbacfe

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

gvasilopulos/yii2-rbacfe
========================

A simple command line rbac frontend for Yii::$app-&gt;authManager

021PHP

Since Mar 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gvasilopulos/yii2-rbacfe)[ Packagist](https://packagist.org/packages/gvasilopulos/yii2-rbacfe)[ RSS](/packages/gvasilopulos-yii2-rbacfe/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
     A simple command line rbac frontent for yii2 authManager.
     It uses the standard User model of yii2 you may have to tweek it if you
     want to use an alternate implementation
     Please Read:
     http://www.yiiframework.com/doc-2.0/guide-security-authorization.html
     type yii rbacfe/help for help on usage

     You have to add the following to your console configuration file

     just before return statement

     Yii::$classMap['gvasilopulos\console\controllers\RbacfeController'] = '@vendor/gvasilopulos/yii2-rbacfe/console/controllers/RbacfeController.php';

     and this as an element of the return statement

     'controllerMap' => [
     'rbacfe' => 'gvasilopulos\console\controllers\RbacfeController'
     ],

     Usage:
     yii rbacfe shows about

     yii rbacfe/help displays help

     yii rbacfe/listroles : lists the defined useroles in the application

     yii rbacfe/hasrole username :lists the current roles of a user

     yii rbacfe/assignrole username role :grants a given role to a given username

     yii rbacfe/hasmainrole username: displays the current roles directly assigned to the user

     yii rbacfe/revokerole username role: revokes a given role from a given username

     yii rbacfe/createpermissions permission1,permission2,permissionN :creates permissions
     from comma separeted values. In this quick and dirty way you cannot set descriptions
     for permisions

     yii rbacfe/createpermission permission "description" :creates a given permission with a given description.
     Description must be enclosed in ""

     yii rbacfe/createrole role :creates a role with a given rolename

     yii rbacfe/removeall : Removes ALL Rbac related data. Use with caution

     yii rbacfe/removeallpermissions : Removes all Permissions

     yii rbacfe/removechild parent child : Removes the given child of the given parent

     yii rbacfe/listchild parent : Lists the child objects of a given parent

     yii rbacfe/removechildren parent : Removes child obects of the given parent

     yii rbacfe/addchild parent child : Adds a given child object to a given parent

     yii rbacfe/permissionsbyrole role : Lists the permissions under a given role

     yii rbacfe/permissionsbyuser username : Gets the assigned permissions to the username

     yii rbacfe/revokeall username :Revokes all roles for a given username

     yii rbacfe/remove name : removes the object (role,permission,rule) with the given name

     yii rbacfe/permissions : Lists all the permissions in the application

     yii rbacfe/removeallroles : removes all roles in the appliction

     yii rbacfe/rules : Lists all the rules in the application

     yii rbacfe/checkaccess username pemission

```

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4d02c71a386399201d2e4ea1b1684258b47dd9d530e89f2cbb2644518c2f4b?d=identicon)[gvasilopulos](/maintainers/gvasilopulos)

### Embed Badge

![Health badge](/badges/gvasilopulos-yii2-rbacfe/health.svg)

```
[![Health](https://phpackages.com/badges/gvasilopulos-yii2-rbacfe/health.svg)](https://phpackages.com/packages/gvasilopulos-yii2-rbacfe)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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