2017 © Pedro Peláez
 

yii2-extension hipanel-rbac

RBAC implementation for HiPanel

image

hiqdev/hipanel-rbac

RBAC implementation for HiPanel

  • Wednesday, June 6, 2018
  • by hiqdev
  • Repository
  • 3 Watchers
  • 2 Stars
  • 6,535 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

HiPanel RBAC

RBAC implementation for HiPanel, (*1)

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality, (*2)

Logo, (*3)

HiPanel is the next generation control panel for hosting, domains and more., (*4)

This package provides RBAC implementation for HiPanel:, (*5)

  • authorization data: roles and permissions
  • helpers

Installation

The preferred way to install this yii2-extension is through composer., (*6)

Either run, (*7)

php composer.phar require "hiqdev/hipanel-rbac"

or add, (*8)

"hiqdev/hipanel-rbac": "*"

to the require section of your composer.json., (*9)

Usage

To add a role or permission you need to write it to src/files/tree.php. After adding roles you have to generate description to it by command:, (*10)

./vendor/bin/hidev rbac/reinit

After these actions all rules are saved, and you need to check it by unit tests. Run ./vendor/bin/phpunit and correct CheckAccessTrait to fix errors., (*11)

TypeScript tree file

js/index.ts file will be generated with all rbac console commands (reinit, init, generate-descriptions). Also you can generate it with generate-js command., (*12)

License

This project is released under the terms of the BSD-3-Clause license. Read more here., (*13)

Copyright © 2016-2019, HiQDev (http://hiqdev.com/), (*14)

The Versions