jonaspardon/mermaid-php
Generate Mermaid diagrams from PHP with a fluent API. Build flowcharts, sequence diagrams, and more as strings for docs, dashboards, or Markdown—no JavaScript required.
Consider it when:
Look elsewhere when:
Adoption hygiene: v1.0.1 is a patch-level maintenance release (one PR adding Laravel 11 + a new contributor). No breaking changes, no API changes. Still pre-2.0, so pin the version and wrap it behind a small internal adapter so a future Mermaid-syntax or API change is a one-file fix.
For executives: This is a low-risk, small-footprint dependency that lets us generate technical diagrams from our code rather than paying people to redraw them. The v1.0.1 release adds Laravel 11 support, which means it now fits our current stack — no version lock-in, no fork. Cost is negligible; the payoff is documentation that stays accurate as the system changes, plus a credible "auto-generated schema/architecture view" for onboarding and internal tooling.
For engineering: It's a composer-installable Mermaid DSL builder — you compose nodes and edges in PHP and get Mermaid text out. Output is plain text, so it diffs in git, tests cleanly, and slots into CI to regenerate docs on merge. It does not render images; pair it with Mermaid CLI or Kroki for PNG/SVG, or render client-side. v1.0.1 is a compatibility patch (Laravel 11), no breaking changes — pin the version and keep it behind a thin adapter, since we're still on a 1.x line.
How can I help you explore Laravel packages today?