PHPackages                             mehedi250/laravel-structure-kit - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mehedi250/laravel-structure-kit

ActiveLibrary[CLI &amp; Console](/categories/cli)

mehedi250/laravel-structure-kit
===============================

A clean architecture and scalable file structure generator for Laravel projects (UI + CLI)

v0.1.5(1mo ago)725↓50%MITBladePHP ^8.1

Since Feb 16Pushed 2mo agoCompare

[ Source](https://github.com/mehedi250/laravel-structure-kit)[ Packagist](https://packagist.org/packages/mehedi250/laravel-structure-kit)[ Docs](https://github.com/mehedi250/laravel-structure-kit)[ RSS](/packages/mehedi250-laravel-structure-kit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (0)

Laravel Structure Kit
=====================

[](#laravel-structure-kit)

Laravel Structure Kit is a **UI-first architecture &amp; file structure generator for Laravel**. It allows developers to **design, preview, and generate clean architecture visually** — before a single file is written.

This package is built for developers who care about **scalability, maintainability, and clean project structure**.

---

🚀 Why Laravel Structure Kit?
----------------------------

[](#-why-laravel-structure-kit)

Laravel grows fast — and so does technical debt.

Laravel Structure Kit helps you:

- Design architecture **before generating files**
- Maintain **consistent, scalable structure**
- Avoid namespace &amp; folder mistakes
- Enforce clean architecture patterns
- Generate code with confidence

> Think of it as **“Architecture first, code second.”**

---

✨ Core Features
---------------

[](#-core-features)

### 🖥️ UI-Based Architecture Generator (Main Highlight)

[](#️-ui-based-architecture-generator-main-highlight)

- Visual file &amp; architecture generator
- Select components with checkboxes
- Fully customizable paths (no fixed folders)
- Live preview of generated file tree
- Auto-generated namespaces from paths
- Shows **only newly generated files**
- No guessing — preview everything first

### 🧩 Supported Components

[](#-supported-components)

- Model
- Controller
- Service (Interface + Implementation)
- Repository (Interface + Implementation)
- Migration

### ⚙️ CLI Support (Power Users)

[](#️-cli-support-power-users)

- Artisan command with flags
- Dry-run mode (preview only)
- Force overwrite existing files
- Perfect for automation &amp; CI pipelines

---

📦 Installation
--------------

[](#-installation)

```
composer require mehedi250/laravel-structure-kit
```

Laravel auto-discovers the service provider.

---

🖥️ UI-Based Generator
---------------------

[](#️-ui-based-generator)

### 🔗 Access URL

[](#-access-url)

```
http://your-app-url/structure-kit

```

Example:

```
http://localhost:8000/structure-kit

```

---

🧭 UI Workflow
-------------

[](#-ui-workflow)

[![Laravel Structure Kit UI](https://raw.githubusercontent.com/mehedi250/laravel-structure-kit/main/src/ui.png)](https://raw.githubusercontent.com/mehedi250/laravel-structure-kit/main/src/ui.png)

### How it works:

[](#how-it-works)

1. Enter **Model / Module name**
2. Select components to generate
3. Customize folder paths per component
4. See **live file tree preview**
5. Click **Generate**

✅ Namespaces are inferred automatically ✅ Only newly generated files are shown

---

🧠 Architecture Benefits
-----------------------

[](#-architecture-benefits)

- Encourages separation of concerns
- Service &amp; repository driven design
- Cleaner controllers
- Easier testing &amp; refactoring
- Ideal for large Laravel projects

---

⚙️ CLI Command
--------------

[](#️-cli-command)

```
php artisan structure-kit
    {name : Model or module name}
    {flags? : m c s r t}
    {--model : Generate model}
    {--controller : Generate controller}
    {--service : Generate service (interface + class)}
    {--repository : Generate repository (interface + class)}
    {--migration : Generate migration}
    {--dry-run : Preview without creating files}
    {--force : Overwrite existing files}
```

---

🚀 CLI Examples
--------------

[](#-cli-examples)

Generate everything:

```
php artisan structure-kit User mcsrt
```

Generate only service &amp; repository:

```
php artisan structure-kit User --service --repository
```

Preview without generating:

```
php artisan structure-kit User mcsr --dry-run
```

---

🧪 Ideal Use Cases
-----------------

[](#-ideal-use-cases)

- New Laravel project setup
- Refactoring legacy code
- Enforcing team architecture rules
- Teaching clean architecture
- Rapid scaffolding with confidence

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome!

GitHub:

---

📜 License
---------

[](#-license)

MIT License © Md. Mehedi Hasan Shawon

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance86

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

7

Last Release

50d ago

### Community

Maintainers

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

---

Top Contributors

[![mehedihasan250](https://avatars.githubusercontent.com/u/103418738?v=4)](https://github.com/mehedihasan250 "mehedihasan250 (14 commits)")

---

Tags

phplaravelscaffoldinggeneratorcode generatorscaffoldlaravel-packageboilerplaterepository patternbackenddesign patternsclean architectureBest-Practicesdeveloper-toolsproject-structurelaravel-architecturelaravel-structurelaravel-toolfolder-structureservice patternfile generatorinterface-pattern

### Embed Badge

![Health badge](/badges/mehedi250-laravel-structure-kit/health.svg)

```
[![Health](https://phpackages.com/badges/mehedi250-laravel-structure-kit/health.svg)](https://phpackages.com/packages/mehedi250-laravel-structure-kit)
```

###  Alternatives

[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)

PHPackages © 2026

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