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

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

rampage-php/rbac
================

A leightweight Rbac implementation

1.0.1(11y ago)0106GPL-3.0+PHPPHP &gt;=5.5

Since Oct 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tux-rampage/rampage-rbac)[ Packagist](https://packagist.org/packages/rampage-php/rbac)[ RSS](/packages/rampage-php-rbac/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Rampage Rbac
============

[](#rampage-rbac)

This is a leightweight Rbac implementation. It exists due to the ZF2 rbac implementation has some major design flaws.

Installation
------------

[](#installation)

Add a require statement to your composer.json `composer.phar require rampage-php/rbac`.

Usage (brief)
-------------

[](#usage-brief)

A simple suage example

```
// let rbac instanciate standard roles
$rbac = new rampage\rbac\Rbac();
$rbac->addRole('foo');
$rbac->addRole('bar', ['foo']);
$rbac->getRole('foo')->allow('permission');

// instanciate your own roles (they need to implement rampage\rbac\RoleInterface)
$role = new Role('baz')
$role->addChild('bar'); // will utilize $rbac->getRole('bar') if present.

$rbac->addRole($role);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~24 days

Total

2

Last Release

4204d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e1761c6aa1122e2178e1eb8a3348366dd73553f8a857fd0b0fd8228f0263e5b?d=identicon)[tux-rampage](/maintainers/tux-rampage)

---

Top Contributors

[![tux-rampage](https://avatars.githubusercontent.com/u/558326?v=4)](https://github.com/tux-rampage "tux-rampage (5 commits)")

---

Tags

rbac

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[santigarcor/laratrust

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

2.3k5.4M43](/packages/santigarcor-laratrust)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[casbin/casbin

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

1.3k1.4M54](/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.

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

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

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

PHPackages © 2026

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