Laramaid

Seamlessly Bridge Mermaid Class Diagrams and Laravel Code

Transform Your Design Into Code

Convert your Mermaid class diagrams directly into fully structured Laravel applications. Laramaid bridges the gap between design and implementation, saving you valuable development time.

Key Features

Bi-Directional Workflow
Generate Laravel code from diagrams and extract diagrams from existing code
Complete Structure Generation
Creates controllers, models, events, listeners, and more
Maintains Laravel Best Practices
Follows framework conventions and coding standards
Smart Code Generation
Includes methods, properties, and proper PHP type hints
Documentation Ready
Automatically generates PHPDoc blocks for better code documentation

How It Works

From Diagram to Code
php artisan laramaid diagram.md

Takes your Mermaid class diagram and generates:

  • Laravel class structures
  • Database migrations
  • Factories for testing
  • Complete method signatures
  • Property definitions with types
From Code to Diagram
php artisan laramaid:extract

Analyzes your Laravel application and creates a comprehensive Mermaid class diagram, perfect for:

  • Documentation
  • Code review
  • Architecture overview
  • Team communication
Elevate Your Laravel Development
  • Architects: Design your application structure visually
  • Teams: Maintain consistency between design and implementation
  • Developers: Quickly scaffold complex application structures
  • Projects: Keep documentation and code in sync

Getting Started

composer require fase22/laramaid