PHPackages                             niraj/crudstarter - 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. [Admin Panels](/categories/admin)
4. /
5. niraj/crudstarter

ActiveLibrary[Admin Panels](/categories/admin)

niraj/crudstarter
=================

Package that automated the work the clean dashboard.

7.4.1(1y ago)196163[1 PRs](https://github.com/NirajBasnyat/crudstarter/pulls)MITPHP

Since Jul 31Pushed 1y ago3 watchersCompare

[ Source](https://github.com/NirajBasnyat/crudstarter)[ Packagist](https://packagist.org/packages/niraj/crudstarter)[ RSS](/packages/niraj-crudstarter/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)DependenciesVersions (51)Used By (0)

[![crudstarter_small](https://user-images.githubusercontent.com/34785562/213905472-858273a7-5f49-4261-b23b-80b2e9e78778.gif)](https://user-images.githubusercontent.com/34785562/213905472-858273a7-5f49-4261-b23b-80b2e9e78778.gif)

Crud and API Generator Package
------------------------------

[](#crud-and-api-generator-package)

[![Stars](https://camo.githubusercontent.com/f31d7416c66e7dfab1e8f509b2d4a7e4aa1f493155b8b6cb9985a26d0955e856/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4e6972616a4261736e7961742f6372756473746172746572)](https://github.com/NirajBasnyat/crudstarter/stargazers)[![Issues](https://camo.githubusercontent.com/0fff53fdd0ec5de559eb1c3e685277e2c1080198013376b86b388a353238cdbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4e6972616a4261736e7961742f6372756473746172746572)](https://github.com/NirajBasnyat/crudstarter/issues)[![License](https://camo.githubusercontent.com/5431bfe4aa38020fdcc4bd460cc4a4724d51afab23b976e0edff95fdc3c3297b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4e6972616a4261736e7961742f6372756473746172746572)](https://camo.githubusercontent.com/5431bfe4aa38020fdcc4bd460cc4a4724d51afab23b976e0edff95fdc3c3297b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4e6972616a4261736e7961742f6372756473746172746572)[![Packagist](https://camo.githubusercontent.com/572717c72b2a261fc733e6d133da31e873ecf7759443fdd991102cd6ebcdfc6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6972616a2f63727564737461727465723f6c6162656c3d76657273696f6e26696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/572717c72b2a261fc733e6d133da31e873ecf7759443fdd991102cd6ebcdfc6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6972616a2f63727564737461727465723f6c6162656c3d76657273696f6e26696e636c7564655f70726572656c6561736573)[![Packagist Downloads](https://camo.githubusercontent.com/10bbbdc8724eba93ae9837ac849efead87134c91a10255e74b09b58ce3602bcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6972616a2f6372756473746172746572)](https://camo.githubusercontent.com/10bbbdc8724eba93ae9837ac849efead87134c91a10255e74b09b58ce3602bcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6972616a2f6372756473746172746572)

### Package which lets you automate tedious CRUD Operations.

[](#package-which-lets-you-automate-tedious-crud-operations)

Detailed Package Docs
=====================

[](#detailed-package-docs)

[GO TO DOCS](https://crudstarter.gitbook.io/crudstarter-docs)
-------------------------------------------------------------

[](#go-to-docs)

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

[](#requirements)

```
Laravel Version: >= 8.0
PHP Version: >= 7.3
Composer: >= 2.0

```

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

[](#installation)

```
composer require niraj/crudstarter --dev

```

#### Required (Publish the config file)

[](#required-publish-the-config-file)

```
php artisan vendor:publish --tag=crudstarter-config

```

#### Optional (If you want to edit stub files)

[](#optional-if-you-want-to-edit-stub-files)

```
php artisan vendor:publish --tag=crud-stub

```

#### Generate Dashboard (One time command)

[](#generate-dashboard-one-time-command)

```
php artisan gen:dashboard

```

Package Usage
-------------

[](#package-usage)

### Basic Usage

[](#basic-usage)

- To generate CRUD

`php artisan gen:crud {ModelName} --fields="fieldName:dataType fieldName:dataType" `

- To generate API

`php artisan gen:api {ModelName} --fields="fieldName:dataType fieldName:dataType`

- To delete CRUD Files

`php artisan del:crud {ModelName} `

- To delete API Files

`php artisan del:api {ModelName} `

> Example: To generate Post CRUD `php artisan gen:crud Post  --fields="name:str slug:str description:text image:str status:bool"`

### Adding Fields

[](#adding-fields)

You can add fields in `gen` commands which auto fills **model, migration, request and api resources**

To add fields we use `--fields="field_name1:data_type1{space}field_name2:data_type2"`

> Example: To generate Post CRUD with fields

> `php artisan gen:crud Post --fields="name:str description:text count:int by_admin:bool is_published:select:options=published,pending"`

> **Note:** Please run auto-alignment (code-formatting) command in your ide/text-editor in generated blade files \[eg: ` Ctrl+Alt+Shift+L` in phpstorm\].

### Adding Relationships

[](#adding-relationships)

to add this functionality simply add `--relations="your code here"` in gen command

> Example: To generate Profile CRUD with relations (hasOne: Account, hasMany: Blogs and belongTo: User)

> `php artisan gen:crud Profile --fields="name:str user_id:fid" --relations="haso:account hasm:blogs belt:user"`

Relation NameShort Hand ForhasohasOnehasmhasManybeltbelongsTobelmbelongsToMany> **Note**: you can use `hasMany`, `belongsTo` etc directly in --relations command if you feel comfortable and it currently only supports these 4 common relations type.

### Adding Soft-Deleting fuctionality

[](#adding-soft-deleting-fuctionality)

to add this functionality simply add `--softDelete` in gen command

> Example: To generate Post CRUD with soft deletes

> `php artisan gen:crud Post --fields="name:str description:text" --softDelete`

### Field Data Type

[](#field-data-type)

some short hands for convenience are provided i.e instead of **`unsignedInteger`** we can use **`uint`** instead while defining fields

Data type NameShort Hand ForincincrementsintintegeruintunsignedIntegertinyinttinyIntegerutinyintunsignedTinyIntegersmallintsmallIntegerusmallintunsignedSmallIntegermediumintmediumIntegerumediumintunsignedMediumIntegerbigintbigIntegerubigintunsignedBigIntegertxttexttinytexttinyTextmediumtextmediumTextlongtextlongTextboolbooleanfidforeignId> **Note**: For other data types like **`date, enum, decimal, uuid`** etc can typed as it is.

What will be generated !
------------------------

[](#what-will-be-generated-)

- ### CRUD

    [](#crud)

    -**\[ Model, Controller, Blade Files, Request, Migration \]** with **Feature Test Skeleton!**
- ### API

    [](#api)

    -**\[ ApiController, ApiRequest, ApiResource \]** with **Feature Test Skeleton!**

> **Note:** Model, Factory, Migration can be also generated for API if needed.

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

[](#customization)

- You can easily customize everything to your need by simply changing stubs files present in crud-stub folder present in resources/crud-stub

Notes
-----

[](#notes)

- You may have to easily customize blade files according to your dashboard template. Which Can be done easily.
- HAPPY CODING 🤘

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88.6% 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 ~23 days

Recently: every ~16 days

Total

49

Last Release

655d ago

Major Versions

2.1.2 → 3.0.02021-08-12

3.2.3 → 4.0.02021-12-02

4.2.5 → 5.0.02022-07-01

5.4.1 → 6.0.02024-02-26

6.1.0 → 7.0.02024-04-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32188655?v=4)[Niraj Basnet](/maintainers/NirajBasnet)[@nirajbasnet](https://github.com/nirajbasnet)

---

Top Contributors

[![NirajBasnyat](https://avatars.githubusercontent.com/u/34785562?v=4)](https://github.com/NirajBasnyat "NirajBasnyat (62 commits)")[![anilvpatel21](https://avatars.githubusercontent.com/u/56153830?v=4)](https://github.com/anilvpatel21 "anilvpatel21 (4 commits)")[![Baronsindo](https://avatars.githubusercontent.com/u/12001192?v=4)](https://github.com/Baronsindo "Baronsindo (4 commits)")

---

Tags

laravellaravel-packagedashboardcrud generatoradmin-panelbootstrap-5api-generatorlaravel crudsneat dashbaord

### Embed Badge

![Health badge](/badges/niraj-crudstarter/health.svg)

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

###  Alternatives

[takielias/tablar-crud-generator

Laravel Tablar Crud Generator based on https://github.com/takielias/tablar

315.6k](/packages/takielias-tablar-crud-generator)

PHPackages © 2026

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