Looking to hire Laravel developers? Try LaraJobs

laravel-structure-kit maintained by mehedi250

Description
A powerful UI + CLI scaffolding tool for Laravel — instantly generate Models, Controllers, Migrations, and Service & Repository pattern boilerplate with customizable file paths.
Last update
2026/04/08 07:48 (dev-main)
License
Downloads
26

Comments
comments powered by Disqus

Laravel Structure Kit

Laravel License Stars Issues PRs Welcome

UI-first architecture generator for Laravel Design and preview your project structure before writing code.


🚀 Why Laravel Structure Kit?

This package helps you:

  • Design architecture before generating files
  • Maintain a clean and scalable structure
  • Avoid namespace and folder mistakes
  • Enforce clean architecture patterns

Architecture first. Code second.


✨ Features

🖥️ UI-Based Architecture Generator

  • Visual file & architecture generator
  • Select components with checkboxes
  • Customizable paths for each component
  • Live preview of the file structure
  • Automatic namespace generation

🧩 Supported Components

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

📦 Installation

Install via Composer:

composer require mehedi250/laravel-structure-kit

Laravel will automatically discover the service provider.


🖥️ UI Generator

Access URL

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

Example:

http://localhost:8000/structure-kit

📸 Screenshot

Laravel Structure Kit UI


🧭 Workflow

  1. Enter Model / Module name
  2. Select components
  3. Customize folder paths
  4. Preview the file structure
  5. Click Generate

This will generate something like:

app/
 ├── Models/User.php
 ├── Http/Controllers/UserController.php
 ├── Services/Contacts/UserServiceInterface.php
 ├── Services/Implementations/UserService.php
 ├── Repositories/Contacts/UserRepositoryInterface.php
 ├── Repositories/Eloquent/UserRepository.php

database/migrations/
 └── create_users_table.php

⚙️ CLI Generator (Optional)

If you prefer not to use the UI, you can generate files directly using an Artisan command.

Command

php artisan structure-kit ModelName mcsrt
Flag Description
m Model
c Controller
s Service (Interface + Implementation)
r Repository (Interface + Implementation)
t Migration

Examples

Generate everything:

php artisan structure-kit User mcsrt

Generate only service & repository:

php artisan structure-kit User sr

Preview without generating files:

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

🧪 Use Cases

  • New Laravel projects
  • Refactoring existing applications
  • Enforcing team architecture
  • Rapid scaffolding

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch
  3. Submit a pull request

🔗 Repository https://github.com/mehedi250/laravel-structure-kit

📊 Project Stats

Stars Forks Issues


📜 License

MIT License © 2026 Md. Mehedi Hasan Shawon

See the LICENSE file for details.

License: MIT


⭐ If you like this project, consider giving it a star on GitHub.