# JosephSilber/bouncer

Laravel Eloquent roles and abilities.

Repository: https://github.com/JosephSilber/bouncer
Canonical: https://ross.abutalabs.com/products/bouncer
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, authorization, eloquent, php, security, permissions, auth, roles, acl, multitenancy
Last push: 2026-03-18T18:10:57+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 72, release rhythm 43, longevity 100
- inputs: {"age_days": 4004, "days_push": 168, "days_rel": 168, "gap_med": 193.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3579, forks 335 (observed 2026-08-28T04:08:10.903899+00:00)

## What it is
Bouncer is a PHP library for managing roles and abilities on Eloquent models, with support for ownership checks, forbidden abilities, caching, and multi-tenancy. It works with Laravel and other apps using Eloquent.

## Use cases
- add role-based access control to a Laravel app
- manage user permissions and abilities with Eloquent
- implement ACL with roles and per-model abilities
- restrict abilities to specific models or ownership
- scope roles and abilities per tenant in a multi-tenant app
- query users by their roles

## When to choose
- you use Laravel or Eloquent and need fine-grained roles and abilities
- you need forbidden abilities, ownership checks, or multi-tenancy scoping

## When to avoid
- your app doesn't use Eloquent models
- you only need simple gate-based checks already provided by Laravel's built-in authorization

## Facets
- artifact type: library
- maturity: stable
- function: authorization, auth
- domain: web-development, security, backend
- platform: php
- tags: roles, abilities, acl, eloquent, multitenancy, permissions, laravel

## Member repositories
- JosephSilber/bouncer (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.903899+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:34:00.332285+00:00, confidence not recorded.
  - readme: https://github.com/JosephSilber/bouncer (fetched 2026-08-28T04:08:10.903899+00:00, sha 68b9258bd0a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
