PHPackages                             kabochan73/er-generate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kabochan73/er-generate

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kabochan73/er-generate
======================

Generate Mermaid ER diagrams from Laravel migration files

v1.0.0(1w ago)01↑2900%MITPHPPHP ^8.1

Since Jun 2Pushed 1w agoCompare

[ Source](https://github.com/kabochan73/ER-Generate)[ Packagist](https://packagist.org/packages/kabochan73/er-generate)[ RSS](/packages/kabochan73-er-generate/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

er-generate
===========

[](#er-generate)

A Laravel package that generates [Mermaid](https://mermaid.js.org/) ER diagrams from your migration files.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, 12, or 13

Installation
------------

[](#installation)

```
composer require kabochan73/er-generate
```

The service provider is auto-discovered by Laravel — no manual registration needed.

Usage
-----

[](#usage)

```
php artisan er:generate
```

Generates `er.html` in the current directory. Open it in any browser to view the diagram.

```
# macOS
open er.html

# Linux
xdg-open er.html

# Windows
start er.html
```

Output
------

[](#output)

**er.html** — a standalone HTML file with an interactive Mermaid ER diagram.

```
users ||--o{ posts : ""

```

Relationships are automatically detected from `foreignId()->constrained()` and `foreign()->references()->on()` syntax.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance98

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

7d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27f329dee2423cdee3e9e5e0460ec938428b904467fccf385d4a8cc9db2e43ed?d=identicon)[kabochan73](/maintainers/kabochan73)

---

Top Contributors

[![kabochan73](https://avatars.githubusercontent.com/u/223471050?v=4)](https://github.com/kabochan73 "kabochan73 (1 commits)")

### Embed Badge

![Health badge](/badges/kabochan73-er-generate/health.svg)

```
[![Health](https://phpackages.com/badges/kabochan73-er-generate/health.svg)](https://phpackages.com/packages/kabochan73-er-generate)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

719160.4k12](/packages/tallstackui-tallstackui)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

954.0k](/packages/zidbih-laravel-deadlock)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19253.0k3](/packages/interaction-design-foundation-laravel-geoip)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
