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
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0
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
- Enter model/module name
- Select components (Model, Controller, Service, Repository, Migration)
- Customize paths for each component
- Preview generated file tree live
- 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