PHPackages                             chrisreedio/filament-policy-generator - 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. chrisreedio/filament-policy-generator

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

chrisreedio/filament-policy-generator
=====================================

Generator Laravel Security Policies for Models/Resources

v4.1.0(3mo ago)05.0k↓26.2%[4 PRs](https://github.com/chrisreedio/filament-policy-generator/pulls)1MITPHPPHP ^8.2CI passing

Since Nov 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/chrisreedio/filament-policy-generator)[ Packagist](https://packagist.org/packages/chrisreedio/filament-policy-generator)[ Docs](https://github.com/chrisreedio/filament-policy-generator)[ GitHub Sponsors](https://github.com/chrisreedio)[ RSS](/packages/chrisreedio-filament-policy-generator/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (11)Used By (1)

Generator Laravel Security Policies for Models/Resources
========================================================

[](#generator-laravel-security-policies-for-modelsresources)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7bf19f894151b35a6e4fc1c9c6b29ce4d1de3d03f6a21f88c59a6d2d6cfa40af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636872697372656564696f2f66696c616d656e742d706f6c6963792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrisreedio/filament-policy-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fd79f2a8d37b4296b03f4b8b9d7af1ab691f3156dc4b4b924d10536b4498e303/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636872697372656564696f2f66696c616d656e742d706f6c6963792d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/chrisreedio/filament-policy-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1be2786f007c55ef1af9ac7db964ec6eae486d7981bf3eb759e84b0baeca832d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636872697372656564696f2f66696c616d656e742d706f6c6963792d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/chrisreedio/filament-policy-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/cfdd1425973b5fd2107dbf9e4ec3ac32f53a92f7eba721faf81d96b47fcdb025/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636872697372656564696f2f66696c616d656e742d706f6c6963792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrisreedio/filament-policy-generator)

This package generates Laravel security policies based on FilamentPHP Resources.

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

[](#installation)

You can install the package via composer:

```
composer require chrisreedio/filament-policy-generator
```

Usage
-----

[](#usage)

```
use ChrisReedIO\PolicyGenerator\PolicyGenerator;
PolicyGenerator::generateAll();
```

OR

```
php artisan policies:generate {--overwrite}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Chris Reed](https://github.com/chrisreedio)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance86

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 68.6% 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 ~166 days

Recently: every ~138 days

Total

6

Last Release

98d ago

Major Versions

3.x-dev → v4.0.0-beta.12025-08-25

PHP version history (2 changes)v3.0.0PHP ^8.1

v3.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/edf125933a93f1f09822d1679b36b2d6deed75b2380f6e1c57d54cd52a8db29d?d=identicon)[chrisreedio](/maintainers/chrisreedio)

---

Top Contributors

[![chrisreedio](https://avatars.githubusercontent.com/u/77644584?v=4)](https://github.com/chrisreedio "chrisreedio (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

laravelchrisreediofilament-policy-generator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chrisreedio-filament-policy-generator/health.svg)

```
[![Health](https://phpackages.com/badges/chrisreedio-filament-policy-generator/health.svg)](https://phpackages.com/packages/chrisreedio-filament-policy-generator)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[chrisreedio/socialment

Provides Socialite functionality for Filament.

10884.8k1](/packages/chrisreedio-socialment)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

5925.8k](/packages/marcelweidum-filament-passkeys)

PHPackages © 2026

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