PHPackages                             ztech243/artisan-crud - 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. [Framework](/categories/framework)
4. /
5. ztech243/artisan-crud

ActiveLibrary[Framework](/categories/framework)

ztech243/artisan-crud
=====================

A Laravel package to generate CRUD operations

v1.0.9(1y ago)019MITPHPPHP &gt;=8.0.0

Since Jul 15Pushed 1y agoCompare

[ Source](https://github.com/kernel243/laravel-curd)[ Packagist](https://packagist.org/packages/ztech243/artisan-crud)[ RSS](/packages/ztech243-artisan-crud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

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

[](#laravel-crud-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fd190c48d9620c76654d5fa1ac6d3dec8980960fa79081870bacc8e62ba8207d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a746563683234332f6172746973616e2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ztech243/artisan-crud)[![Total Downloads](https://camo.githubusercontent.com/724f5c549cc3a72d8413197fc1329732d7ee1b4a8c607d2d88fa000e47fd2169/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a746563683234332f6172746973616e2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ztech243/artisan-crud)

A Laravel package to generate CRUD operations quickly and easily.

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

[](#installation)

You can install the package via composer:

```
composer require ztech243/laravel-crud
```

Optionally, you can publish the stubs for customization:

```
php artisan vendor:publish --provider="Ztech243\CrudGenerator\Providers\CrudGeneratorServiceProvider"
```

Usage
-----

[](#usage)

This package provides two commands to generate CRUD operations:

### API CRUD

[](#api-crud)

Generate CRUD operations for APIs:

```
php artisan make:crud-api {ModelName} [--migration] [--model]
```

- `{ModelName}`: The name of the model.
- `--migration` (optional): Include this flag to generate a migration.
- `--model` (optional): Include this flag to generate a model.

Example:

```
php artisan make:crud-api User --migration --model
```

### Blade CRUD

[](#blade-crud)

Generate CRUD operations with Blade views:

```
php artisan make:crud-blade {ModelName} [--migration] [--model]
```

- `{ModelName}`: The name of the model.
- `--migration` (optional): Include this flag to generate a migration.
- `--model` (optional): Include this flag to generate a model.

Example:

```
php artisan make:crud-blade User --migration --model
```

Customization
-------------

[](#customization)

You can customize the stubs to fit your application's needs. After publishing the stubs, you can find them in the `resources/stubs/vendor/crud-generator` directory.

### Stubs

[](#stubs)

- `api-controller.stub`
- `api-request.stub`
- `api-resource.stub`
- `blade-controller.stub`
- `blade-request.stub`
- `blade-view.stub`
- `model.stub`
- `migration.stub`

Example
-------

[](#example)

### Generating CRUD API for a User Model

[](#generating-crud-api-for-a-user-model)

1. Generate the CRUD API with a migration and model:

    ```
    php artisan make:crud-api User --migration --model
    ```
2. Check the generated files:

    - `app/Http/Controllers/Api/UserController.php`
    - `app/Http/Requests/StoreUserRequest.php`
    - `app/Http/Requests/UpdateUserRequest.php`
    - `app/Http/Resources/UserResource.php`
    - `app/Models/User.php`
    - `database/migrations/xxxx_xx_xx_xxxxxx_create_users_table.php`
3. Routes are added automatically to `routes/api.php`.

### Generating CRUD with Blade Views for a User Model

[](#generating-crud-with-blade-views-for-a-user-model)

1. Generate the CRUD with Blade views, migration, and model:

    ```
    php artisan make:crud-blade User --migration --model
    ```
2. Check the generated files:

    - `app/Http/Controllers/UserController.php`
    - `app/Http/Requests/StoreUserRequest.php`
    - `app/Http/Requests/UpdateUserRequest.php`
    - `resources/views/users/index.blade.php`
    - `resources/views/users/create.blade.php`
    - `resources/views/users/edit.blade.php`
    - `resources/views/users/show.blade.php`
    - `app/Models/User.php`
    - `database/migrations/xxxx_xx_xx_xxxxxx_create_users_table.php`
3. Routes are added automatically to `routes/web.php`.

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

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.

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

Community6

Small or concentrated contributor base

Maturity51

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

Total

11

Last Release

646d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4.0

v1.0.8PHP &gt;=8.0.0

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ztech243-artisan-crud/health.svg)

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

###  Alternatives

[code16/sharp

Laravel Content Management Framework

78959.5k4](/packages/code16-sharp)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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