https://github.com/owaissaleemjokhio/easystructor
Easystructor is a Visual Studio Code extension that helps you generate full-stack boilerplate code quickly using predefined project structures and custom logic. Currently supports Laravel (Service/Repository/DDD structure).
https://github.com/owaissaleemjokhio/easystructor
code-generator laravel laravel-framework php service-pattern vscode vscode-extension vscode-for-laravel
Last synced: about 2 months ago
JSON representation
Easystructor is a Visual Studio Code extension that helps you generate full-stack boilerplate code quickly using predefined project structures and custom logic. Currently supports Laravel (Service/Repository/DDD structure).
- Host: GitHub
- URL: https://github.com/owaissaleemjokhio/easystructor
- Owner: owaissaleemjokhio
- License: mit
- Created: 2025-07-13T17:33:27.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-09-12T13:04:50.000Z (10 months ago)
- Last Synced: 2025-09-12T14:55:00.318Z (10 months ago)
- Topics: code-generator, laravel, laravel-framework, php, service-pattern, vscode, vscode-extension, vscode-for-laravel
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=Easystructor.easystructor
- Size: 12.2 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/owaissaleemjokhio/easystructor/blob/master/LICENSE.md) [](https://marketplace.visualstudio.com/items?itemName=Easystructor.easystructor)
Easystructor - The Ultimate Developer Toolkit for VS Code
**Easystructor** is a powerful **VS Code Extension** that provides a complete, end-to-end toolkit for Laravel developers.
It streamlines the entire workflow with **automated code generation, database schema design, real-time previews, API testing, Git workflow automation, and integrated task management** β all within a modern **Webview interface**.
Unlike traditional generators, **Easystructor** goes beyond scaffolding by unifying the entire development lifecycle β from **idea to implementation, API integration, version control, and project management** β directly inside VS Code, making it a true productivity companion for modern teams.
> π‘ From idea β Code β API β Git β Project Management β everything inside VS Code.
---
## β¨ Core Productivity Features
- π **Kanban Board**
A built-in **project management board** inside VS Code:
- Add, edit, delete tasks & columns
- Drag-and-drop tasks between columns
- Export/Import JSON for backups or sharing
- π **Auto Git Workflow**
Easystructor handles versioning for you:
- Creates a new branch (`feature/module-name`)
- Runs `git add .`
- Commits (`feat: Added ModuleName CRUD`)
- Pushes to remote automatically
- π¦ **Postman Exporter**
Generate a **ready-to-use Postman Collection** with all your CRUD endpoints in one click.
- β‘ **Real-time Stub Preview**
Instantly preview Models, Controllers, Services, Requests, and Resources before they are written to your Laravel project.
- π οΈ **Migration Builder**
Add fields via an interactive form and see a **live migration code preview** for faster schema design.
- ποΈ **Safe Revert Actions**
Roll back entire CRUD modules safely without leaving leftover files or half-deleted code.
- π **Config Import/Export**
Save your extension setup (board state, CRUD settings, preferences) as JSON and reload anytime.
- π§© **Multiple Modals**
Smooth and modern dialogs for CRUD, tasks, confirmations, and detail previews.
- π **Dark Mode Support**
Toggle between dark and light themes seamlessly.
---
## β
Laravel Integration Features
- π§ **Complete CRUD Modules**:
- π§© **Model** (with `$fillable`, `$attributes`, casting & relationships)
- π‘οΈ **Form Request** (accurate validation rules)
- βοΈ **Controller** (Service + Resource pattern)
- π¦ **Service Class** (filters, pagination, CRUD methods)
- π― **Resource Class** (standardized JSON responses)
- βοΈ Auto-registers routes via `Route::apiResource(...)`
- π Centralized **JSON Response & Exception Handling**
- π Smart service filters (text-based `LIKE` vs exact match)
- π§ͺ Supported field types:
`string`, `text`, `integer`, `bigint`, `float`, `decimal`,
`boolean`, `enum`, `date`, `datetime`, `time`, `json`
---
## π§Ύ Output Examples
### Migration
```php
$table->string('name');
$table->string('email')->nullable();
$table->decimal('price', 10, 2)->default(0.00);
$table->boolean('is_active')->default(true);
$table->enum('role', ['admin', 'user'])->default('user');
$table->dateTime('registered_at')->nullable();
```
### π§Ύ Output: Validation Rules
```php
'name' => 'required|string',
'email' => 'nullable|string',
'price' => 'required|numeric',
'is_active' => 'required|boolean',
'role' => 'required|in:admin,user',
'registered_at' => 'nullable|date',
```
### π§Ύ Output: Service Filters
```php
->when(isset($filters['name']), fn($q) => $q->where('name', 'like', '%' . $filters['name'] . '%'))
->when(isset($filters['price']), fn($q) => $q->where('price', $filters['price']))
->when(isset($filters['is_active']), fn($q) => $q->where('is_active', $filters['is_active']))
```
## π Output Structure
```
app/
βββ Models/Product.php
βββ Http/
β βββ Controllers/ProductController.php
β βββ Requests/ProductRequest.php
β βββ Resources/ProductResource.php
βββ Services/ProductService.php
routes/
βββ api.php (auto-updated)
```
---
## π Getting Started
## π¦ Installation
Install **Easystructor** from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Easystructor.easystructor):
```bash
code --install-extension Easystructor.easystructor
```
---
## π» Usage
1. Open the **Easystructor Sidebar** inside VS Code.
2. Organize and track progress using the built-in **Kanban Board**.
3. Use the **Migration Builder** to design your database schema with a live preview.
4. Instantly **preview code stubs** before finalizing.
5. Generate a **Laravel module** (Models, Controllers, Services, Requests, Resources) in one click.
6. Commit your changes with **Auto Git Workflow** (branch β add β commit β push).
7. Export all endpoints as a **Postman Collection** for quick API testing.
---
## πΈ Workflow in Action
Manage tasks with **Kanban Board**

---
Export endpoints to **Postman**

---
Easily **Revert a Module**

---
Design database with **Migration Builder**

---
## π£οΈ Roadmap
- [x] Kanban Board (task management with drag & drop, import/export)
- [x] Auto Git Workflow (branch β add β commit β push)
- [x] Postman Collection Exporter
- [x] Real-time Stub Preview (Model, Controller, Service, Request)
- [x] Laravel CRUD Generator
- [x] Migration Builder with live preview
- [x] Config Import/Export (CRUD configs, board settings, preferences)
- [x] Safe Revert CRUD modules
- [x] Centralized JSON Response handling
- [x] Dark/Light mode support
- [ ] Relationships generator (belongsTo, hasMany, etc.)
- [ ] Custom validation rules
- [ ] Seeder & Factory stubs
- [ ] AI-assisted module suggestions
- [ ] Swagger/OpenAPI generator for API docs
- [ ] Advanced GitOps (auto PRs, semantic release hooks)
---
### License
This Easystructor package is open-source software licensed under the MIT License. See the [LICENSE](https://github.com/owaissaleemjokhio/easystructor/blob/master/LICENSE.md) file for more information.
### Contributions and Feedback
Contributions, issues, and feedback are welcome! If you encounter any problems or have suggestions for improvements, please feel free to create an issue on [GitHub](https://github.com/owaissaleemjokhio/easystructor)
Thank you for using Easystructor to simplify your full-stack development workflow. We hope this extension speeds up your project scaffolding and helps you write clean, structured code effortlessly. If you have any questions or need support, donβt hesitate to reach out. Happy coding! π»π