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

ActiveLibrary

centiq/rbac
===========

NIST-2 RBAC Authorization library

299[7 issues](https://github.com/robertpitt/rbac/issues)PHP

Since Feb 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/robertpitt/rbac)[ Packagist](https://packagist.org/packages/centiq/rbac)[ RSS](/packages/centiq-rbac/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

RBAC
====

[](#rbac)

[![Build Status](https://camo.githubusercontent.com/72e407af374ec6309838327c1e73bc4b2fa6e20c6c635a4ff7e6ce412bf032b7/68747470733a2f2f7472617669732d63692e6f72672f726f62657274706974742f726261632e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/robertpitt/rbac)

#### Important!

[](#important)

This package is still currently under heavy development, please do not until the package is in a stable state.

What is RBAC?
-------------

[](#what-is-rbac)

> In computer systems security, role-based access control (RBAC) is an approach to restricting system access to authorized users. It is used by the majority of enterprises with more than 500 employees,\[3\] and can implement mandatory access control (MAC) or discretionary access control (DAC). RBAC is sometimes referred to as role-based security.

Source: [Wikipedia](http://en.wikipedia.org/wiki/RBAC)

Design
------

[](#design)

Centiq RBAC provides NIST Level 2 Standard Hierarchical Role Based Access Control in an easy to use library that meets core php standards.

This library provides the following core abilities

- Create many Roles
- Role &lt;&gt; Role Inheritance
- Create many Permissions
- Permission &lt;&gt; Permission Inheritance

Basic Usage
-----------

[](#basic-usage)

```
require 'vendor/autoload.php'

//Create a connection to the database
$connection = new PDO("mysql:dbname=rbac_main;host=localhost");

//Create a manager instance
$manager = new \Centiq\RBAC\Manager($connection);

//Fetch the root role
$root = $manager->getRootRole();

//Create a child role
$child = $root->createChild("child", "My first child role");
```

Setup and Installation
----------------------

[](#setup-and-installation)

- @todo, Composer Install
- @todo, Database Installation
- @todo, Include autoloader
- @todo, Instantiate Manager Entity

Authors
-------

[](#authors)

- [Robert Pitt](https://github.com/robertpitt/)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/77d558671c6a9e8e40b14be1ec520d66c1e5f45be41fb729ed332a89d26bc2db?d=identicon)[robertpitt](/maintainers/robertpitt)

---

Top Contributors

[![robertpitt](https://avatars.githubusercontent.com/u/567579?v=4)](https://github.com/robertpitt "robertpitt (13 commits)")

### Embed Badge

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

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

PHPackages © 2026

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