PHPackages                             nhrrob/crudgenerator - 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. nhrrob/crudgenerator

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

nhrrob/crudgenerator
====================

This package provides an artisan command to generate a basic crud

v2.3.1(1y ago)278351[6 issues](https://github.com/nhrrob/crudgenerator/issues)MITPHP

Since Apr 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nhrrob/crudgenerator)[ Packagist](https://packagist.org/packages/nhrrob/crudgenerator)[ RSS](/packages/nhrrob-crudgenerator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (32)Used By (0)

NHRROB Crud Generator Package
-----------------------------

[](#nhrrob-crud-generator-package)

[![Stars](https://camo.githubusercontent.com/15f872fad255db16e3c4f91253794aaf15810588385f9b566b789986b1455ad3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6872726f622f6372756467656e657261746f723f7374796c653d666c61742d737175617265)](https://github.com/nhrrob/crudgenerator/stargazers)[![Total Downloads](https://camo.githubusercontent.com/659b4b66abe70eaefd08afd7ffb82f52d77e3d85986f952c62244accfd98e222/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6872726f622f6372756467656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nhrrob/crudgenerator)[![Latest Stable Version](https://camo.githubusercontent.com/e18068ca1750e32694967aef9f720124a607ac9431f504d9e58d84935c48b0b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6872726f622f6372756467656e657261746f72)](https://packagist.org/packages/nhrrob/crudgenerator)[![GitHub license](https://camo.githubusercontent.com/29bcc8dcba52dfc47579fcd58b3d68483d0f491380c222f369ce14b43cf90a65/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6872726f622f6372756467656e657261746f72)](https://github.com/nhrrob/crudgenerator/blob/master/LICENSE.md)

### This package provides an artisan command to generate a basic crud

[](#this-package-provides-an-artisan-command-to-generate-a-basic-crud)

composer install command:

```
composer require nhrrob/crudgenerator

```

### Crud Generator Commands

[](#crud-generator-commands)

- install:

```
php artisan crud:generator

```

- If you want to keep backend files under Admin folder
    File Structure: Check below (Section =&gt; Bonus : Admin File Structure)

```
php artisan crud:generator --admin

```

- Migration: Add title field and run migration
    - add field:

    ```
    $table->string('title');

    ```

    - run migration:

    ```
    php artisan migrate

    ```

#### Note:

[](#note)

- This package creates resource route. Example:
    - Model title: Post
    - Resource route: example.com/posts
- If you want to use Api, make sure Sanctum (or, Passport) is installed.
    Link: [](https://github.com/nhrrob/laravelwiki)

#### Loom Videos:

[](#loom-videos)

- Laravel 8 project installation with auth:

- Laravel Crud using nhrrob/crudgenerator:

#### Modify Stubs:

[](#modify-stubs)

- Publish vendor files

```
php artisan vendor:publish

```

#### Remove Crud Generated Files:

[](#remove-crud-generated-files)

- Delete Crud

```
php artisan crud:generator:delete

```

- If you have generated crud under Admin folder:

```
php artisan crud:generator:delete --admin

```

- Manually delete migration file and remove route from web.php

Feel free to contact:
[nazmulrobin.com](https://www.nazmulrobin.com/) | [Twitter](https://twitter.com/nhr_rob) | [Linkedin](https://www.linkedin.com/in/nhrrob/) | [Email](mailto:robin.sust08@gmail.com)

#### Bonus

[](#bonus)

Laravel 8 auth using laravel/ui:
--------------------------------

[](#laravel-8-auth-using-laravelui)

```
composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run dev
php artisan migrate

```

#### Bonus : API

[](#bonus--api)

API Helpline:

- `https://github.com/nhrrob/laravelwiki`
- `After refreshing database re create personal access token for passport`

```
php artisan passport:install

```

#### Bonus : Admin File Structure

[](#bonus--admin-file-structure)

- When you add --admin in crud generator commands =&gt;
    It adds admin folder for views and Admin folder for controllers (including Api)
- Sample File/Folder Structure:

```
#Controllers
app/Http/Controllers/
app/Http/Controllers/Admin

#Views
resources/views/
resources/views/admin

------------------------------

#API Controllers
app/Http/Controllers/Api
app/Http/Controllers/Api/Admin

```

V2.3.0
------

[](#v230)

- Config file added
- Api versioning support added
- Api versions will be managed in dedicated version folder (e.x. app/Http/Controllers/Api/V1 and app/Http/Controllers/Api/V1/Admin)
- Now delete command will also delete migration file. You dont need to manually remove it.
- API AuthController will be added under versioning folder. (Probably -  has no auth under versioning. But I am adding auth under versioning for get started project. Also crud generator creates under versioning folder).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Every ~43 days

Recently: every ~306 days

Total

30

Last Release

643d ago

Major Versions

v1.2.2 → v2.0.02021-05-10

### Community

Maintainers

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

---

Top Contributors

[![nhrrob](https://avatars.githubusercontent.com/u/7073431?v=4)](https://github.com/nhrrob "nhrrob (73 commits)")

### Embed Badge

![Health badge](/badges/nhrrob-crudgenerator/health.svg)

```
[![Health](https://phpackages.com/badges/nhrrob-crudgenerator/health.svg)](https://phpackages.com/packages/nhrrob-crudgenerator)
```

###  Alternatives

[dflydev/embedded-composer

Embed Composer into another application

7142.9k9](/packages/dflydev-embedded-composer)

PHPackages © 2026

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