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

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

chriskelemba/rbac-auth
======================

RBAC and authentication package.

v1.1.0(4mo ago)018MITPHPPHP ^8.3

Since Nov 7Pushed 4mo agoCompare

[ Source](https://github.com/chriskelemba/rbac-auth-2)[ Packagist](https://packagist.org/packages/chriskelemba/rbac-auth)[ RSS](/packages/chriskelemba-rbac-auth/feed)WikiDiscussions main Synced 1w ago

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

RBAC Auth Package
=================

[](#rbac-auth-package)

A simple Role-Based Access Control (RBAC) package for Laravel.
Provides user, role, and permission management with policies.

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

[](#installation)

1. Require the package via Composer (for local development, use path repository):

```
composer require chriskelemba/rbac-auth
```

Compatibility
-------------

[](#compatibility)

- Laravel `^12.0|^13.0`
- PHP `^8.3` (including PHP 8.4 and newer 8.x releases allowed by Composer)

2. Seed the database with default roles and permissions:

```
php artisan rbac:seed
```

3. API Routes

```
# Authentication
POST   /api/login                                    # User login
GET    /api/me                                       # Get authenticated user
POST   /api/logout                                   # User logout

# Users
GET    /api/users                                    # List all users
POST   /api/users                                    # Create user
GET    /api/users/{user}                             # Get user
PUT    /api/users/{user}                             # Update user
DELETE /api/users/{user}                             # Delete user
GET    /api/users/{user}/roles                       # Get user roles
POST   /api/users/{user}/roles/{role}                # Assign role to user
DELETE /api/users/{user}/roles/{role}                # Revoke role from user

# Roles
GET    /api/roles                                    # List all roles
POST   /api/roles                                    # Create role
GET    /api/roles/{role}                             # Get role
PUT    /api/roles/{role}                             # Update role
DELETE /api/roles/{role}                             # Delete role
GET    /api/roles/{role}/permissions                 # Get role permissions
POST   /api/roles/{role}/permissions/{permission}    # Assign permission to role
DELETE /api/roles/{role}/permissions/{permission}    # Revoke permission from role

# Permissions
GET    /api/permissions                              # List all permissions
POST   /api/permissions                              # Create permission
GET    /api/permissions/{permission}                 # Get permission
PUT    /api/permissions/{permission}                 # Update permission
DELETE /api/permissions/{permission}                 # Delete permission
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance77

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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 ~157 days

Total

2

Last Release

125d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/151122714?v=4)[chriskelemba](/maintainers/chriskelemba)[@chriskelemba](https://github.com/chriskelemba)

---

Top Contributors

[![chriskelemba](https://avatars.githubusercontent.com/u/151122714?v=4)](https://github.com/chriskelemba "chriskelemba (5 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)

PHPackages © 2026

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