定制 hiqdev/hipanel-rbac 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hiqdev/hipanel-rbac

最新稳定版本:0.1.5

Composer 安装命令:

composer require hiqdev/hipanel-rbac

包简介

RBAC implementation for HiPanel

README 文档

README

RBAC implementation for HiPanel

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

Logo

HiPanel is the next generation control panel for hosting, domains and more.

This package provides RBAC implementation for HiPanel:

  • authorization data: roles and permissions
  • helpers

Installation

The preferred way to install this yii2-extension is through composer.

Either run

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

or add

"hiqdev/hipanel-rbac": "*"

to the require section of your composer.json.

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:

./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.

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.

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

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

统计信息

  • 总下载量: 29.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-04-08