PHPackages                             cline/warden - 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. [Database &amp; ORM](/categories/database)
4. /
5. cline/warden

ActiveLibrary[Database &amp; ORM](/categories/database)

cline/warden
============

Eloquent roles and abilities.

5.0.3(2mo ago)01.7k—0%1MITPHPPHP ^8.5.0CI failing

Since Nov 15Pushed 2mo agoCompare

[ Source](https://github.com/faustbrian/warden)[ Packagist](https://packagist.org/packages/cline/warden)[ RSS](/packages/cline-warden/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (23)Versions (63)Used By (1)

[![GitHub Workflow Status](https://github.com/faustbrian/warden/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/warden/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/1ded727fc022f3a8cbbe9ca93d36857f5473a9cb66e9c3ea825f3b592e762e6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f77617264656e2e737667)](https://packagist.org/packages/cline/warden)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/38aeb24e9394b4e342ef499e7ff132b9b95cec45634bb09295c96233f83e10c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f77617264656e2e737667)](https://packagist.org/packages/cline/warden)

---

Warden is an elegant library for managing roles and permissions in Laravel applications. It provides a simple, expressive API for authorization that integrates seamlessly with Laravel's native authorization system.

This is a fork of [Bouncer](https://github.com/JosephSilber/bouncer) by Joseph Silber, exploring alternative organizational patterns while maintaining compatibility.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/) and Laravel 12+**

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

[](#installation)

```
composer require cline/warden
```

Documentation
-------------

[](#documentation)

- **[Getting Started](DOCS.md#doc-docs-readme)** - Installation, configuration, and basic concepts
- **[Roles and Abilities](DOCS.md#doc-docs-roles-and-abilities)** - Creating and managing roles and permissions
- **[Model Restrictions](DOCS.md#doc-docs-model-restrictions)** - Scoping abilities to specific models
- **[Ownership](DOCS.md#doc-docs-ownership)** - Handling ownership-based permissions
- **[Removing Permissions](DOCS.md#doc-docs-removing-permissions)** - Disallowing and syncing abilities
- **[Forbidding](DOCS.md#doc-docs-forbidding)** - Explicit denials and blanket restrictions
- **[Checking Permissions](DOCS.md#doc-docs-checking-permissions)** - Various ways to check authorization
- **[Querying](DOCS.md#doc-docs-querying)** - Finding users by roles and abilities
- **[Authorization](DOCS.md#doc-docs-authorization)** - Integration with Laravel's authorization system
- **[Multi-Tenancy](DOCS.md#doc-docs-multi-tenancy)** - Scoping permissions per tenant
- **[Configuration](DOCS.md#doc-docs-configuration)** - Advanced configuration options
- **[Console Commands](DOCS.md#doc-docs-console-commands)** - Artisan commands for maintenance

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/warden/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [Joseph Silber](https://github.com/JosephSilber/bouncer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

62

Last Release

61d ago

Major Versions

0.0.1 → 1.4.02025-11-16

1.4.0 → 2.0.02025-11-16

2.1.0 → 3.0.02025-11-18

3.8.1 → 4.0.02026-02-02

4.x-dev → 5.0.02026-03-04

PHP version history (2 changes)1.0.0PHP ^8.4.0

3.4.0PHP ^8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (11 commits)")

---

Tags

laraveleloquentaclrolespermissionscapabilitiesabilities

### Embed Badge

![Health badge](/badges/cline-warden/health.svg)

```
[![Health](https://phpackages.com/badges/cline-warden/health.svg)](https://phpackages.com/packages/cline-warden)
```

###  Alternatives

[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[spatie/laravel-permission

Permission handling for Laravel 12 and up

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

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

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

1.7k12.1M99](/packages/laravel-pulse)

PHPackages © 2026

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