mehedi250/laravel-structure-kit

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

Maintainers

Package info

github.com/mehedi250/laravel-structure-kit

Language:Blade

pkg:composer/mehedi250/laravel-structure-kit

Statistics

Installs: 25

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 0

v0.1.5 2026-03-30 04:47 UTC

This package is auto-updated.

Last update: 2026-04-02 14:16:05 UTC


README

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.