PHPackages                             mystamystinc/model-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mystamystinc/model-policy-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mystamystinc/model-policy-generator
===================================

This is a package that creates policies for all the existing models in the project. It is customizable and easy to use.

0.1.0(1y ago)021[1 PRs](https://github.com/GitongaGeorge/mystamyst/pulls)MITPHPPHP ^8.2

Since Apr 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GitongaGeorge/mystamyst)[ Packagist](https://packagist.org/packages/mystamystinc/model-policy-generator)[ Docs](https://github.com/GitongaGeorge/mystamyst)[ GitHub Sponsors]()[ RSS](/packages/mystamystinc-model-policy-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (14)Used By (0)

Model Policy Generator
======================

[](#model-policy--generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2580ad7998a13cd6d70521aa2063d14ab9b4fb89bbbe0a7db3fa5405d12b4f76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d797374616d797374696e632f6d6f64656c2d706f6c6963792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mystamystinc/model-policy-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/652866617753ae6907b88ebb7dccfd5d808e492020fb6dce62225cf30e572a9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d797374616d797374696e632f6d6f64656c2d706f6c6963792d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mystamystinc/model-policy-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9af9c697fc87825ef1e3d84a59b4cf44f17bb9ae9dc8de14716f934d38a68e24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d797374616d797374696e632f6d6f64656c2d706f6c6963792d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mystamystinc/model-policy-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/83ec8ad7474e4eeef8f8281801da68644288f150a1cb8e0012a280b1985342bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d797374616d797374696e632f6d6f64656c2d706f6c6963792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mystamystinc/model-policy-generator)

This is a package that simply creates policies for all the existing models in the project. It is customizable and easy to use.

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

[](#installation)

You can install the package via composer:

```
composer require mystamystinc/model-policy-generator
```

You can publish the config file with:

```
php artisan myst:install

This is the contents of the published config file:

```php

return [
    'permissions' => [
        'view',
        'view_any',
        'create',
        'update',
        'restore',
        'restore_any',
        'replicate',
        'reorder',
        'delete',
        'delete_any',
        'force_delete',
        'force_delete_any',
    ],
    'models_directory' => 'app/Models',
    'policies_directory' => 'app/Policies',
];
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Gitonga George](https://github.com/GitongaGeorge)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.1% 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 ~12 days

Recently: every ~30 days

Total

11

Last Release

638d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33b40086942f9f5fded1fb0ec5c5aa2a0ce18edfabcfa983142369bbcc43fccd?d=identicon)[MystamystInc](/maintainers/MystamystInc)

---

Top Contributors

[![GitongaGeorge](https://avatars.githubusercontent.com/u/32942450?v=4)](https://github.com/GitongaGeorge "GitongaGeorge (27 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelgeneratormodelPolicyGeorgeGitonga

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mystamystinc-model-policy-generator/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[dyrynda/laravel-model-uuid

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

4802.8M8](/packages/dyrynda-laravel-model-uuid)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)

PHPackages © 2026

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