mdmsoft/yii2-admin RBAC Auth manager for Yii2

rbacadminauth

RBAC Manager for Yii 2

GUI manager for RBAC (Role Base Access Control) Yii2. Easy to manage authorization of user :smile:.

Latest Unstable Version Total Downloads Daily Downloads License Reference Status Build Status Dependency Status Scrutinizer Code Quality Code Climate

Documentation

Important: If you install version 3.x, please see this readme.

Installation

Install With Composer

The preferred way to install this extension is through composer.

Either run

php composer.phar require mdmsoft/yii2-admin "~1.0"
or
php composer.phar require mdmsoft/yii2-admin "~2.0"

or for the dev-master

php composer.phar require mdmsoft/yii2-admin "2.x-dev"

Or, you may add

"mdmsoft/yii2-admin": "~2.0"

to the require section of your composer.json file and execute php composer.phar update.

Install From the Archive

Download the latest release from here releases, then extract it to your project. In your application config, add the path alias for this extension.

return [
    ...
    'aliases' => [
        '@mdm/admin' => 'path/to/your/extracted',
        // for example: '@mdm/admin' => '@app/extensions/mdm/yii2-admin-2.0.0',
        ...
    ]
];

More...

screenshots

Changelog

Yii2 Admin Change Log

2.5

  • Enh: Add code testing (mdmunir).
  • Enh: Add more documentation (mdmunir).

2.0

  • Chg: Remove dependenci to yiisoft/yii2-jui (mdmunir).
  • Chg: Add asset bundle for jui autocomplete (mdmunir).

1.0.4

  • Bug: #102: Unique validation of the permission and role (mdmunir).
  • Enh: Clear cache when menu change (mdmunir).
  • Enh: Ensure get latest state of user component (mdmunir).

1.0.3

1.0.2

  • Enh: Add Portuguese language to translation message (iforme).
  • Enh: configurable Navbar defined in module config (Stefano Mtangoo).
  • Enh: Add Italian language to translation message (realtebo).

1.0.1

  • Enh: Add Persian language to translation message (jafaripur).
  • Enh: Add French language to translation message (marsuboss).

1.0.0

  • Enh: Internationalization (sosojni).
  • Enh: Add Russian language to translation message (m0zart89).

1.0.0-rc

  • Bug #12: Allow another module name (mdmunir).
  • Bug: #19: Added table prefix to table menu for some query (mdmunir, liu0472).
  • Bug: #24: change $cache === null to isset($cache) (mdmunir).
  • Bug: Bug fix. Ensure array has index before check in_array() (mdmunir).
  • Bug: Typo fix, replace AssigmentController to AssignmentController (mdmunir).
  • Enh: Custom side menu via mdm\admin\Module::items (mdmunir).
  • Enh: Added menu manager (mdmunir).
  • Enh: Migration for table menu (mdmunir).
  • Enh: Added Menu order (mdmunir).
  • Enh: Add db and cache configuration (mdmunir).
  • Enh: Add comment docs for entire class (mdmunir).
  • Enh: Add documentation (mdmunir).
  • Enh #57: Allow user to assign permission directly (mdmunir).
  • Chg #10: cache is not used anymore (mdmunir).
  • Chg #11: Only use required style sheet (mdmunir).
  • Chg: Using VarDumper::export to save data of mdm\models\AuthItem (mdmunir).
  • Chg: Allow using another yii\rbac\Rule instance (mdmunir).
  • Chg: Remove prefix menu_ from column name of table menu (mdmunir).
  • Chg: Added column data to table menu (mdmunir).
  • Chg: Can customize return of mdm\admin\components\AccessHelper::getAssignedMenu() with provide a callback to method (mdmunir).
  • Chg: Add require "yiisoft/yii2-jui" to composer.json (mdmunir, hashie5).
  • Chg: #21: Force set allow null to column parent in database migration (mdmunir).
  • Chg: Remove mdm\admin\components\BizRule (mdmunir).
  • Chg: Change convert string to yii\rbac\Item::$data with Json::decode() (mdmunir).
  • Chg: Add extra param to route (mdmunir).
  • Chg: Add ability to get sparated menu. See Using Menu (mdmunir).
  • Chg: Refactor layout (mdmunir).
  • Chg: Change AccessHelper to MenuHelper (mdmunir).
  • Chg: Change migration path name (mdmunir).
  • Chg: db and cache configuration via $app->params['mdm.admin.configs'] (mdmunir).
  • Chg: #29: Change yii\caching\GroupDependency to yii\caching\TagDependency (mdmunir).
  • Chg: Remove mdm\admin\Module::allowActions. Set access control directly with mdm\admin\components\AccessControl (mdmunir).
  • Chg: Change cache strategy (mdmunir).
  • Chg: mdm\admin\components\DbManager now inherited from yii\rbac\DbManager (mdmunir).
  • Chg: Change module default layout (mdmunir).
  • Chg: Change back items to controllers (mdmunir).
  • Chg: Set default layout to null (mdmunir).
  • Chg #53: Fixed typo. Change Role to Permission (mdmunir).
  • Chg: Simplify using layout (mdmunir).

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



3.2 is the latest of 24 releases



BSD-3-Clause license
Stats
1162 github stars & 572 github forks
612 downloads in the last day
13280 downloads in the last 30 days
1172005 total downloads