mwsys/yii2-mwrbac

Yii2 RBAC Extension

Installs: 97

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.0.4 2020-09-15 04:35 UTC

This package is auto-updated.

Last update: 2025-06-15 14:58:38 UTC


README

Yii2 RBAC Extension

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mwsys/yii2-mwrbac "*"

or add

"mwsys/yii2-mwrbac": "*"

to the require section of your composer.json file.

Usage

Up to this moment, this extension only provide actionfilter to handle regex-based access rights

Add parameter to the parameters, this config indicate that filter will add route otomatically as auth item.

'add_auth_item' => true,

Add behavior in configuration.

.... 'as checkuser' => [ 'class' => 'mwsys\mwrbac\components\MwAccessControl', 'allowActions' => [ 'site/*', ],

...