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

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

stl/rbac-auth
=============

RBAC and authentication package.

v1.0.13(7mo ago)029MITPHPPHP ^8.2

Since Oct 9Pushed 7mo agoCompare

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

READMEChangelog (2)Dependencies (5)Versions (16)Used By (0)

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

[](#stl-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 stl/rbac-auth
```

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

35

—

LowBetter than 77% of packages

Maintenance62

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

14

Last Release

238d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/stl-rbac-auth/health.svg)](https://phpackages.com/packages/stl-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)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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