PHPackages                             zapsterstudios/crud-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. zapsterstudios/crud-generator

ActiveLibrary

zapsterstudios/crud-generator
=============================

1.0.0(8y ago)0221MITPHP

Since Jun 2Pushed 8y agoCompare

[ Source](https://github.com/ZapsterStudios/Laravel-API-CRUD-Generator)[ Packagist](https://packagist.org/packages/zapsterstudios/crud-generator)[ RSS](/packages/zapsterstudios-crud-generator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/51b88ac03b00fbdd9b7eaf6c5c063b3a1a463ebf04268c33f0353dd36c3af258/68747470733a2f2f706f7365722e707567782e6f72672f7a61707374657273747564696f732f637275642d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/zapsterstudios/crud-generator)[![Latest Stable Version](https://camo.githubusercontent.com/cb0637e0957572b5a577bb9395bedbcc9a1942771944c46f76c0aecda9af01e5/68747470733a2f2f706f7365722e707567782e6f72672f7a61707374657273747564696f732f637275642d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/zapsterstudios/crud-generator)[![License](https://camo.githubusercontent.com/ea04c6a113982913d6e22f722281a6619b348d14e4d4bbd229e5b2132a950bc0/68747470733a2f2f706f7365722e707567782e6f72672f7a61707374657273747564696f732f637275642d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/zapsterstudios/crud-generator)[![StyleCI](https://camo.githubusercontent.com/1bfe06d05e39e32827edcddb0c0b7b8044f70cb9968b4b17875c6362e383f7fa/68747470733a2f2f7374796c6563692e696f2f7265706f732f39333038313432342f736869656c64)](https://styleci.io/repos/93081424)

Laravel-API-CRUD-Generator
==========================

[](#laravel-api-crud-generator)

This package generates all the needed files and snippets for a CRUD (Create, Read, Update and Delete) API endpoint. This includes: Model, Migration, Controller, Routes and Policy (Used for restricting route access). This package also takes care of validation with the $rules variable in the model.

Usage
-----

[](#usage)

`php artisan make:crud SomeModelName`

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

[](#installation)

### Install with Composer

[](#install-with-composer)

Run the following command.

```
composer require zapsterstudios/crud-generator

```

### Register ServiceProvider

[](#register-serviceprovider)

Add the following class to the `providers` array in `config/app.php`.

```
ZapsterStudios\CrudGenerator\PackageServiceProvider::class,
```

### Handle Policy AuthorizationException

[](#handle-policy-authorizationexception)

Add the following statement in the `render` function in `app/Exceptions/Handler.php`.

```
if($exception instanceof \Illuminate\Auth\Access\AuthorizationException) {
    if($request->expectsJson()) {
        return response()->json(['error' => 'Forbidden.'], 403);
    }
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/917d245e12a5c7c11fd6c7b2912a1747a7f20fc2b7aefdba239da0854c41eefa?d=identicon)[ZapsterStudios](/maintainers/ZapsterStudios)

---

Top Contributors

[![Prepager](https://avatars.githubusercontent.com/u/6892255?v=4)](https://github.com/Prepager "Prepager (16 commits)")

### Embed Badge

![Health badge](/badges/zapsterstudios-crud-generator/health.svg)

```
[![Health](https://phpackages.com/badges/zapsterstudios-crud-generator/health.svg)](https://phpackages.com/packages/zapsterstudios-crud-generator)
```

PHPackages © 2026

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