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.
Author
Last update
2026/04/08 07:48
(dev-main)
License
Downloads
26
Tags
Laravel Structure Kit
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

🧭 Workflow
- Enter Model / Module name
- Select components
- Customize folder paths
- Preview the file structure
- 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!
- Fork the repository
- Create your feature branch
- Submit a pull request
🔗 Repository https://github.com/mehedi250/laravel-structure-kit
📊 Project Stats
📜 License
MIT License © 2026 Md. Mehedi Hasan Shawon
See the LICENSE file for details.
⭐ If you like this project, consider giving it a star on GitHub.