PHPackages                             nutandc/api-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. [API Development](/categories/api)
4. /
5. nutandc/api-crud-generator

ActiveLibrary[API Development](/categories/api)

nutandc/api-crud-generator
==========================

Laravel API CRUD generator for models, controllers, requests, resources, migrations, routes, plus optional repository/service patterns.

v1.0.0(4mo ago)00MITPHPPHP ^8.2CI failing

Since Jan 3Pushed 4mo agoCompare

[ Source](https://github.com/Nutandc/laravel-api-crud-generator)[ Packagist](https://packagist.org/packages/nutandc/api-crud-generator)[ Docs](https://github.com/Nutandc/laravel-ApiCrud-Generator)[ RSS](/packages/nutandc-api-crud-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

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

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

[![CI](https://github.com/Nutandc/laravel-api-crud-generator/actions/workflows/ci.yml/badge.svg)](https://github.com/Nutandc/laravel-api-crud-generator/actions/workflows/ci.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/54f92e3d5bddf544491b5c27aeaafdb03a83a13cde56405b7f9c8c41668ca603/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e7574616e64632f6170692d637275642d67656e657261746f722e737667)](https://packagist.org/packages/nutandc/api-crud-generator)[![Total Downloads](https://camo.githubusercontent.com/cede7cad2b6e1a7594faad34ddeb72fe04fb8739a0edbc0d6582dbfd517445c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7574616e64632f6170692d637275642d67656e657261746f722e737667)](https://packagist.org/packages/nutandc/api-crud-generator)[![License](https://camo.githubusercontent.com/f0801d9312247e2cfa57cee79331495f52f5212150f802723158f60039d8a133/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e7574616e64632f6170692d637275642d67656e657261746f722e737667)](LICENSE)

Laravel API CRUD generator for models, controllers, requests, resources, migrations, routes, plus optional repository/service patterns.

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

[](#requirements)

- PHP 8.2+
- Laravel 10/11/12

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

[](#installation)

```
composer require nutandc/api-crud-generator
```

Publish config and stubs (optional):

```
php artisan vendor:publish --tag=api-crud-generator-config
php artisan vendor:publish --tag=api-crud-generator-stubs
```

Usage
-----

[](#usage)

Generate everything:

```
php artisan crud:api Post --fields="title,body:text,author_id:integer,is_active:boolean"
```

Make a field required with `!`:

```
php artisan crud:api User --fields="!name,email:email,age:integer"
```

Enable/disable patterns:

```
php artisan crud:api Post --service --repo
php artisan crud:api Post --no-service --no-repo
```

Skip parts:

```
php artisan crud:api Category --no-migration --no-resource
```

Overwrite existing files:

```
php artisan crud:api Product --fields="name,price:decimal" --force
```

Generated Files
---------------

[](#generated-files)

- Model: `app/Models`
- Request: `app/Http/Requests`
- Resource: `app/Http/Resources`
- Controller: `app/Http/Controllers/Api`
- Migration: `database/migrations`
- Route: `routes/api.php`

Field Types
-----------

[](#field-types)

Supported field types: `string`, `text`, `integer`, `bigInteger`, `boolean`, `date`, `dateTime`, `email`, `uuid`, `json`, `float`, `decimal`.

Examples:

```
title:string,body:text,price:decimal,uuid:uuid,is_active:boolean

```

Config
------

[](#config)

`config/api-crud-generator.php` controls namespaces, paths, routes, base controller, pagination, and resource fields. Repository/service patterns can be enabled or disabled via config or CLI flags.

Example config:

```
'repository' => [
    'enabled' => true,
    'path' => app_path('Repositories'),
],
'service' => [
    'enabled' => false,
    'path' => app_path('Services'),
],

```

Stubs
-----

[](#stubs)

Publish and customize stubs under:

```
resources/stubs/api-crud-generator

```

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance75

Regular maintenance activity

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

134d ago

### Community

Maintainers

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

---

Tags

apilaravelgeneratorscaffoldcrud

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)

PHPackages © 2026

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