icehouse-ventures/laravel-mermaid
Laravel Mermaid generates Mermaid.js diagrams directly from your Laravel app, turning models, relationships, and database schema into clean ER diagrams and flowcharts. Ideal for documentation, code reviews, and onboarding, with simple Artisan commands to render visuals that stay in sync with your co...
Adopt when:
Look elsewhere when:
For executives: A small, low-cost dependency that lets us generate and display architecture and database diagrams directly inside our internal Laravel tools. It keeps documentation aligned with the actual code instead of drifting, and v2.0.0 is explicitly built for the Laravel 12/13 and PHP 8.2–8.5 range we are standardizing on — so it will not become an upgrade blocker. Cost is a composer dependency; the tradeoff is that it is community-supported rather than vendor-backed, so we would scope it to internal tooling rather than customer-facing surfaces.
For engineering: Drop-in Laravel integration for Mermaid 11 with strict rendering, multi-diagram pages, Eloquent relationship diagram generation, and Livewire 4 navigation handling — the exact plumbing we would otherwise build and maintain. Quality signals are mixed but net positive: PHPStan level 8, Pint, CI across PHP 8.2–8.5, dependency audits, frontend builds, and real-browser SVG plus Livewire interaction coverage in the Laravel 13 demo. The caveat is test depth — 7 tests / 19 assertions — so plan to validate our specific diagram shapes in a spike before committing, and keep it isolated behind an internal-only route.
Ask: Approve a timeboxed spike on an internal admin page to confirm rendering under our CSP and Livewire setup before adding it to the dependency baseline.
How can I help you explore Laravel packages today?