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(2mo ago)018MITPHPPHP ^8.3

Since Nov 7Pushed 7mo 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 today

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

37

—

LowBetter than 81% of packages

Maintenance72

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

80d 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 (4 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

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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