Generate sequence diagrams, ERDs, UML diagrams, and API docs directly from your Laravel codebase.
What Laravel2Doc Offers
A comprehensive suite of documentation tools for Laravel developers.
Visualize request flows between frontend, controllers, models, and database with automated sequence diagrams.
Automatically generate Entity Relationship Diagrams showing your database structure and relationships.
Understand model relationships and class structures with automatically generated UML diagrams.
Auto-generate comprehensive API documentation with endpoints, parameters, and example requests.
Simple command-line interface to generate all documentation with a single command.
View and navigate all generated documentation through a clean, interactive web interface.
How Laravel2Doc Works
Under the hood with the sequence.js module
Controller Scanning
Identifies all controller methods (index, show, store, etc.)
Sequence Classification
Categorizes actions based on RESTful conventions
Model Discovery
Finds related models and their relationships
Query Analysis
Identifies database queries triggered by each operation
Diagram Generation
Creates Mermaid.js-based sequence diagrams
generateSequenceDiagrams()
Scans all controllers and generates diagrams
generateShowSequence()
Handles show operations specifically
generateCSS()
Styles the dashboard output
generateJavaScript()
Adds interactivity to diagrams
generateIndexHTML()
Builds the main dashboard interface
Video: laravel2doc sequence diagram generation demo
Development Timeline
Stay tuned for updates and the official release!
March 2025
Core architecture and sequence diagram generation implemented.
April 2025
Added Entity Relationship Diagrams and UML Class Diagram generation.
May 2025
Currently testing edge cases and improving the interactive dashboard.
End of May 2025
Official GitHub repository launch with complete documentation.
Stay tuned for updates, resources, and links!
Get In Touch
Have questions or want to contribute? Reach out to us.
priom7197@gmail.com