Download the PHP package rtcoder/laravel-db-erd without Composer
On this page you can find all versions of the php package rtcoder/laravel-db-erd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rtcoder/laravel-db-erd
More information about rtcoder/laravel-db-erd
Files in rtcoder/laravel-db-erd
Package laravel-db-erd
Short Description Laravel package to generate database ERD diagrams.
License MIT
Informations about the package laravel-db-erd
Laravel DB ERD Generator
A Laravel package for generating Entity-Relationship Diagrams (ERD) of your database schema. This tool is designed to support multiple database systems like MySQL, PostgreSQL, SQLite, SQL Server, and Oracle.
Features
- Automatically scans your database schema for tables and their relationships.
- Generates ERD diagrams in PDF format using Graphviz.
- Extensible design with support for multiple database drivers.
Installation
Requirements
- PHP 8.1 or higher
- Laravel 9.x or higher
- Graphviz installed on your system
Step 1: Install the package
Step 2: Publish the configuration (optional)
If you need to customize the behavior, publish the configuration file:
If you need to customize the views, you can publish them using:
This will copy the default views to your project's resources/views/vendor/laravel-erd
directory, where you can modify them as needed.
Step 3: Install Graphviz
Ensure Graphviz is installed on your system.
On macOS:
On Ubuntu:
On Windows:
Download and install from Graphviz's official site.
Usage
Generate an ERD Run the following Artisan command to generate the ERD:
The --output
option specifies the file path for the generated diagram.
Supported Databases
- MySQL
- PostgreSQL
- SQLite
- SQL Server
- Oracle
Supported output formats
- SVG
- PNG
- HTML
Configuration
You can customize the package by modifying the configuration file (config/db-erd.php
):
Troubleshooting
-
Graphviz not found
Error\ Ensure Graphviz is correctly installed and added to your system's PATH. - Empty ERD Diagram\ Verify that your database schema has relationships (foreign keys).
License
This package is open-source software licensed under the MIT license.