mehedi250/laravel-structure-kit

Clean architecture and file structure generator for Laravel projects

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/mehedi250/laravel-structure-kit

0.1.1 2026-02-17 07:14 UTC

This package is auto-updated.

Last update: 2026-02-17 07:39:19 UTC


README

Laravel Structure Kit is a UI + CLI based architecture generator for Laravel projects.
It helps you generate clean, scalable project structures using custom paths, live preview, and flexible flags.

✨ Features

  • ✅ UI-based architecture generator
  • ✅ Custom path editor (fully configurable)
  • ✅ Live preview of generated file tree
  • ✅ Service & Repository with interfaces
  • ✅ Auto namespace generation from paths
  • ✅ CLI support with flags & options
  • ✅ Dry-run & force overwrite support
  • ✅ Shows only newly generated files

📦 Installation

composer require mehedi250/laravel-structure-kit

🖥️ UI Based Architecture Generator

🔗 UI Access Link

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

Example:

http://localhost:8000/structure-kit

🧭 UI Usage

image
  1. Enter model/module name
  2. Select components (Model, Controller, Service, Repository, Migration)
  3. Customize paths for each component
  4. Preview generated file tree live
  5. Click Generate

Namespaces are auto-generated from paths.

⚙️ 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}

🚀 Examples

php artisan structure-kit User mcsrt
php artisan structure-kit User --service --repository
php artisan structure-kit User mcsr --dry-run

📜 License

MIT