PHPackages                             cline/patrol - 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. cline/patrol

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

cline/patrol
============

Framework-agnostic access control package for Laravel with support for ACL, RBAC, ABAC, and RESTful authorization

1.1.0(7mo ago)01MITPHPPHP ^8.5.0CI failing

Since Nov 9Pushed 6mo agoCompare

[ Source](https://github.com/faustbrian/patrol)[ Packagist](https://packagist.org/packages/cline/patrol)[ RSS](/packages/cline-patrol/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (18)Versions (3)Used By (0)

[![GitHub Workflow Status](https://camo.githubusercontent.com/55afcbc9b17ed9722bd8bcda95e889b13a46555e88ea542aee57b1d7e9f9accd/68747470733a2f2f6769742e636c696e652e73682f6661757374627269616e2f706174726f6c2f616374696f6e732f776f726b666c6f77732f7175616c6974792d6173737572616e63652e79616d6c2f62616467652e737667)](https://git.cline.sh/faustbrian/patrol/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/1200f755113fbb78fd4bd8396d0189044ad37110d899c00a44aae56365a3f4e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f706174726f6c2e737667)](https://packagist.org/packages/cline/patrol)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/700b0e86d0044635a576f7757cd35a60685b779a7deaa60785730ec8ab27e37b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f706174726f6c2e737667)](https://packagist.org/packages/cline/patrol)

---

Flexible authorization for Laravel with support for 11+ access control models. Choose the model that fits your needs - from simple ACL to complex ABAC - or combine multiple models in the same application.

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

[](#requirements)

> **Requires [PHP 8.2+](https://php.net/releases/)****Requires [Laravel 11.0+](https://laravel.com/docs)**

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

[](#installation)

```
composer require cline/patrol
```

Publish the configuration:

```
php artisan vendor:publish --tag=patrol-config
```

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

[](#documentation)

### Getting Started

[](#getting-started)

- **[Quick Start](cookbook/guides/QUICK-START.md)** - Get up and running in minutes
- **[Quick Reference](cookbook/guides/QUICK-REFERENCE.md)** - Choose your model in 2 minutes
- **[Beginner's Path](cookbook/guides/GETTING-STARTED.md)** - ACL → RBAC → ABAC learning path

### Authorization Models

[](#authorization-models)

- **[Authorization Models Overview](cookbook/guides/AUTHORIZATION-MODELS-OVERVIEW.md)** - All 11 models with examples
- **[ACL Models](cookbook/models/ACL.md)** - Access Control List (basic, superuser, without users, without resources)
- **[RBAC Models](cookbook/models/RBAC.md)** - Role-Based Access Control (basic, resource roles, domains)
- **[ABAC](cookbook/models/ABAC.md)** - Attribute-Based Access Control
- **[RESTful](cookbook/models/RESTful.md)** - HTTP path/method authorization
- **[Security Patterns](cookbook/models/Deny-Override.md)** - Deny-Override and Priority-Based

### Guides

[](#guides)

- **[API Reference](cookbook/guides/API-REFERENCE.md)** - Complete API documentation
- **[Policy Builders](cookbook/guides/POLICY-BUILDERS.md)** - Fluent APIs for building policies
- **[CLI Tools](cookbook/guides/CLI-TOOLS.md)** - Test and debug from command line
- **[Configuration](cookbook/guides/CONFIGURATION.md)** - Complete configuration guide
- **[Persisting Policies](cookbook/guides/PERSISTING-POLICIES.md)** - Database, cache, and file storage

### Advanced Topics

[](#advanced-topics)

- **[Complete Cookbook](cookbook/README.md)** - Comprehensive guides and patterns
- **[Delegation](cookbook/Delegation.md)** - Policy delegation patterns
- **[Native Delegation](cookbook/NativeDelegation.md)** - Laravel native authorization

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

[](#change-log)

Please see the [Releases](https://git.cline.sh/faustbrian/patrol/releases) 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://git.cline.sh/faustbrian/patrol/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://git.cline.sh/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance66

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

215d ago

PHP version history (2 changes)1.0.0PHP ^8.4.0

1.1.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 (6 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

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

Associate files with Eloquent models

6.1k43.2M630](/packages/spatie-laravel-medialibrary)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)

PHPackages © 2026

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