PHPackages                             arpanmandaviya/laravel-system-builder - 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. arpanmandaviya/laravel-system-builder

ActiveLibrary[Framework](/categories/framework)

arpanmandaviya/laravel-system-builder
=====================================

Generate Laravel migrations, models, controllers, and views from a minimal JSON schema (Laravel 12+)

v1.2.23(5mo ago)039MITPHPPHP &gt;=8.1

Since Dec 4Pushed 2mo agoCompare

[ Source](https://github.com/arpanmandaviya07/sysgen)[ Packagist](https://packagist.org/packages/arpanmandaviya/laravel-system-builder)[ RSS](/packages/arpanmandaviya-laravel-system-builder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

🚀 Laravel System Builder
------------------------

[](#-laravel-system-builder)

A professional Laravel package that lets you generate complete application scaffolding including:

- 📁 Database Migrations
- 🧬 Eloquent Models
- 🎛️ Controllers
- 🎨 Blade Views

All automatically — powered by a single JSON file.

---

📌 Installation &amp; Requirements
---------------------------------

[](#-installation--requirements)

Install the package using Composer:

```
composer require arpanmandaviya/laravel-system-builder

```

Place a JSON definition file anywhere in your Laravel project, for example:

```
storage/app/system.json

```

---

⚡ Generate Your System
----------------------

[](#-generate-your-system)

Run the build command:

```
php artisan system:build --json=storage/app/system.json

```

To overwrite existing files:

```
php artisan system:build --json=storage/app/system.json --force

```

Note: Gave the Path of The File In The Command Otherwise it Show Error For More Information Please Use `Help` Command

---

📁 Example JSON Structure
------------------------

[](#-example-json-structure)

```
{
	/*
	|--------------------------------------------------------------------------
	| 1. Table Definitions
	|--------------------------------------------------------------------------
	| Defines database tables, columns, primary keys, and foreign keys.
	| This section drives Migration and Model generation.
	*/
	"tables": [
		{
			"name": "users",
			"columns": [
				{ "name": "id", "type": "bigIncrements" },
				{ "name": "name", "type": "string", "length": 100, "comment": "Full name of the user" },
				{ "name": "email", "type": "string", "length": 150, "unique": true },
				{ "name": "password", "type": "string", "length": 255 },
				{
					"name": "role_id",
					"type": "unsignedBigInteger",
					"foreign": {
						"on": "roles",             /* Target table */
						"references": "id",        /* Target column */
						"onDelete": "cascade"      /* MySQL action */
					}
				}
			]
		},
		{
			"name": "workers",
			"columns": [
				{ "name": "id", "type": "bigIncrements" },
				{
					"name": "user_id",
					"type": "unsignedBigInteger",
					"foreign": { "on": "users", "references": "id", "onDelete": "cascade" }
				},
				{ "name": "position", "type": "string", "length": 100 },
				{ "name": "salary", "type": "decimal", "length": "10,2" },
				{ "name": "status", "type": "enum", "values": ["active", "inactive"], "default": "active" }
			]
		}
	],

	/*
	|--------------------------------------------------------------------------
	| 2. Controller Definitions
	|--------------------------------------------------------------------------
	| Explicitly defines controllers to be generated. If a table-based controller
	| (e.g., 'PostController' for table 'posts') is NOT listed here, it is
	| automatically inferred and generated with default resource methods.
	*/
	"controllers": [
		{ "name": "UserController", "table": "users", "model": "User" },
		{ "name": "WorkerController", "table": "workers", "model": "Worker" }
	],

	/*
	|--------------------------------------------------------------------------
	| 3. Model Definitions & Relationships
	|--------------------------------------------------------------------------
	| Defines models and their Eloquent relationships. Used to populate the
	| Model's `$fillable` array and add relationship methods.
	*/
	"models": [
		{
			"name": "User",
			"table": "users",
			"relations": [
				"role:belongsTo",
				"workers:hasMany"
			]
		},
		{
			"name": "Worker",
			"table": "workers",
			"relations": [
				"user:belongsTo",
				"tasks:hasMany"
			]
		}
	],

	/*
	|--------------------------------------------------------------------------
	| 4. View Scaffolding
	|--------------------------------------------------------------------------
	| Defines general view files and structure (not tied to a specific table).
	| Syntax: "{folder}/[file1,file2,file3]" creates files in resources/views/{folder}.
	*/
	"views": [
		"admin/includes/[head]",
		"admin/partials/[sidebar,navbar,footer,script]"
	]
}

```

---

🆘 Need Help?
------------

[](#-need-help)

You can access built-in help:

```
php artisan system:help

```

---

📌 Features
----------

[](#-features)

FeatureStatusAutomatic Migrations✔Automatic Models✔Automatic Controllers✔View Scaffolding✔Relationship Support✔JSON-based Definition✔Foreign Key Generator✔Enum / JSON / Custom Field Support✔GUI Form Designer⏳ Coming Soon---

👨‍💻 Author &amp; Credits
------------------------

[](#‍-author--credits)

Created with ❤️ by **Arpan Mandaviya**

If you're using this in a commercial product, a mention or sponsorship is appreciated (optional).

---

📜 License
---------

[](#-license)

Copyright © 2025-present
Owner: **Arpan Mandaviya**

Permissions:

✔ Free to use in personal and commercial projects
✖ Cannot remove credits
✖ Cannot claim ownership
✖ Cannot sell modified versions as a competing product

Future versions may introduce licensing terms. Continued usage of updated versions implies acceptance.

---

⚠ Warranty Disclaimer
---------------------

[](#-warranty-disclaimer)

This software is provided **“AS IS”**, without warranty of any kind.
Use at your own risk.

---

CLI Command Reference
---------------------

[](#cli-command-reference)

The Laravel System Builder provides additional optional commands for generating individual resources without requiring a JSON file.

---

🔥 Laravel System Builder CLI Commands
-------------------------------------

[](#-laravel-system-builder-cli-commands)

Below is a list of available System Builder commands, including their help options for guidance.

━━━ 📌 Generate Migration Files (Interactive Mode) ━━━

Create new database migration files interactively:

```
php artisan system:migrate

```

View detailed help, supported datatypes, and usage examples:

```
php artisan system:migrate --help

```

━━━ 📌 Generate a Model (Existing or New Table Support) ━━━

Create a new Model with optional relationship setup:

```
php artisan system:model

```

View help and available flags:

```
php artisan system:model --help

```

━━━ 📌 Generate a Controller (Resource or Standard) ━━━

Create a fully scaffolded controller:

```
php artisan system:controller

```

View controller command syntax, options, and usage guide:

```
php artisan system:controller --help

```

━━━ 💡 Tip: ━━━

You can run any of these commands without arguments. The System Builder will guide you with interactive questions allowing you to:

```
✔ Select controller type
✔ Add relationships
✔ Detect existing tables
✔ Define columns and keys
✔ Generate resource boilerplate automatically

```

No JSON file required — everything works interactively.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance79

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

82d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d18e61fc9a2346f314e3e06ea1180efcaec1981e00a7e8eef3118a6d29a500?d=identicon)[arpanmandaviya07](/maintainers/arpanmandaviya07)

---

Top Contributors

[![arpanmandaviya07](https://avatars.githubusercontent.com/u/210829836?v=4)](https://github.com/arpanmandaviya07 "arpanmandaviya07 (55 commits)")

### Embed Badge

![Health badge](/badges/arpanmandaviya-laravel-system-builder/health.svg)

```
[![Health](https://phpackages.com/badges/arpanmandaviya-laravel-system-builder/health.svg)](https://phpackages.com/packages/arpanmandaviya-laravel-system-builder)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)

PHPackages © 2026

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