PHPackages                             hiqdev/hipanel-rbac - 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. hiqdev/hipanel-rbac

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

hiqdev/hipanel-rbac
===================

RBAC implementation for HiPanel

0.1.5(4y ago)830.1k5[2 PRs](https://github.com/hiqdev/hipanel-rbac/pulls)BSD-3-ClausePHPCI failing

Since Sep 27Pushed 4w ago3 watchersCompare

[ Source](https://github.com/hiqdev/hipanel-rbac)[ Packagist](https://packagist.org/packages/hiqdev/hipanel-rbac)[ Docs](https://github.com/hiqdev/hipanel-rbac)[ RSS](/packages/hiqdev-hipanel-rbac/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (8)Versions (17)Used By (0)

HiPanel RBAC
============

[](#hipanel-rbac)

**RBAC implementation for HiPanel**

[![Latest Stable Version](https://camo.githubusercontent.com/94953048f886564b53187ce4c31e7922fec17716082af09190e909242dc3e327/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f686970616e656c2d726261632f762f737461626c65)](https://packagist.org/packages/hiqdev/hipanel-rbac)[![Total Downloads](https://camo.githubusercontent.com/f2b511c97e7f0d2357cf2fe727d2a06c95743523bf7d995b9eb48b077b6c98b3/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f686970616e656c2d726261632f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/hipanel-rbac)[![Build Status](https://camo.githubusercontent.com/96522b9dc558434fdb05d1bc5c0673c53c59d33a0c56626a2bb0c071e71ea8da/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f686970616e656c2d726261632e737667)](https://travis-ci.org/hiqdev/hipanel-rbac)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/51f05cea671623fe583ec9743e0d74256b59ab2afc180a34ab09da382c5ebff7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f686970616e656c2d726261632e737667)](https://scrutinizer-ci.com/g/hiqdev/hipanel-rbac/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69aaca42c4c706dba58338a9e0b91bafd490316f61a5a0c1916186ba3cb6c015/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f686970616e656c2d726261632e737667)](https://scrutinizer-ci.com/g/hiqdev/hipanel-rbac/)

[![Logo](https://raw.githubusercontent.com/hiqdev/hipanel-core/master/docs/logo.png)](https://hipanel.com/)

[HiPanel](http://hipanel.com/) 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
------------

[](#installation)

The preferred way to install this yii2-extension is through [composer](http://getcomposer.org/download/).

Either run

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

or add

```
"hiqdev/hipanel-rbac": "*"
```

to the require section of your composer.json.

Usage
-----

[](#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

[](#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
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2016-2019, HiQDev ()

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance62

Regular maintenance activity

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 57.8% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~223 days

Recently: every ~1 days

Total

9

Last Release

1778d ago

Major Versions

0.1.0 → 1.0.x-dev2019-03-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (181 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (53 commits)")[![bladeroot](https://avatars.githubusercontent.com/u/10207103?v=4)](https://github.com/bladeroot "bladeroot (33 commits)")[![strorch](https://avatars.githubusercontent.com/u/23340907?v=4)](https://github.com/strorch "strorch (17 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (13 commits)")[![VadymHrechukha](https://avatars.githubusercontent.com/u/114911409?v=4)](https://github.com/VadymHrechukha "VadymHrechukha (7 commits)")[![maxhaiduk](https://avatars.githubusercontent.com/u/26121646?v=4)](https://github.com/maxhaiduk "maxhaiduk (6 commits)")[![ValeriyShnurovoy](https://avatars.githubusercontent.com/u/16237008?v=4)](https://github.com/ValeriyShnurovoy "ValeriyShnurovoy (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

hacktoberfestrbachipanel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hiqdev-hipanel-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/hiqdev-hipanel-rbac/health.svg)](https://phpackages.com/packages/hiqdev-hipanel-rbac)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.9M129](/packages/bezhansalleh-filament-shield)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.8M47](/packages/santigarcor-laratrust)[casbin/casbin

a powerful and efficient open-source access control library for php projects.

1.3k1.5M54](/packages/casbin-casbin)[owasp/phprbac

PHP-RBAC is the de-facto authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet.

444988.3k4](/packages/owasp-phprbac)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

331368.6k4](/packages/casbin-laravel-authz)

PHPackages © 2026

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