# beyondcode/laravel-er-diagram-generator

Generate entity relation diagrams from your Laravel model files.

Repository: https://github.com/beyondcode/laravel-er-diagram-generator
Canonical: https://ross.abutalabs.com/products/laravel-er-diagram-generator
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-03-23T14:08:54+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 44, longevity 100
- inputs: {"age_days": 2983, "days_push": 163, "days_rel": 163, "gap_med": 235.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2022, forks 198 (observed 2026-08-28T04:06:06.430951+00:00)

## What it is
A Laravel package that generates entity relation diagrams by inspecting relationships defined in Eloquent model files, using GraphViz under the hood. It provides an artisan command that outputs diagrams as PNG, SVG, or text.

## Use cases
- generate ER diagrams from Laravel models
- visualize database relationships in a Laravel app
- document Eloquent model relationships automatically
- export entity relation diagram as PNG or SVG
- create text representation of model relationships

## When to choose
- you have a Laravel or Lumen app with Eloquent models and want automatic ER diagrams
- you want a quick artisan command to visualize model relationships
- you need customizable diagram generation with multiple output formats

## When to avoid
- your project is not built on Laravel/Eloquent
- you need diagrams from raw database schemas rather than model files
- you cannot install the GraphViz dependency

## Facets
- artifact type: library
- maturity: active
- function: documentation, cli, data-visualization
- domain: developer-tools, documentation, web-development, databases
- platform: php, cli, cross-platform
- tags: laravel, eloquent, entity-relation-diagram, graphviz, artisan-command, database-schema

## Member repositories
- beyondcode/laravel-er-diagram-generator (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.430951+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:05.563547+00:00, confidence not recorded.
  - readme: https://github.com/beyondcode/laravel-er-diagram-generator (fetched 2026-08-28T04:06:06.430951+00:00, sha 3ecc6efd53ba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
