{"id":28354965,"url":"https://github.com/rtcoder/laravel-db-erd","last_synced_at":"2026-02-02T22:40:57.617Z","repository":{"id":267144527,"uuid":"900366169","full_name":"rtcoder/laravel-db-erd","owner":"rtcoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-12T16:43:29.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T23:29:30.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T15:42:47.000Z","updated_at":"2024-12-12T16:42:43.000Z","dependencies_parsed_at":"2024-12-08T17:38:14.701Z","dependency_job_id":null,"html_url":"https://github.com/rtcoder/laravel-db-erd","commit_stats":null,"previous_names":["rtcoder/laravel-db-erd"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rtcoder/laravel-db-erd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtcoder%2Flaravel-db-erd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtcoder%2Flaravel-db-erd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtcoder%2Flaravel-db-erd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtcoder%2Flaravel-db-erd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtcoder","download_url":"https://codeload.github.com/rtcoder/laravel-db-erd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtcoder%2Flaravel-db-erd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29022037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T22:20:39.141Z","status":"ssl_error","status_checked_at":"2026-02-02T22:20:37.621Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-28T03:10:47.784Z","updated_at":"2026-02-02T22:40:57.611Z","avatar_url":"https://github.com/rtcoder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel DB ERD Generator\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)  \nA 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.\n\n---\n\n## Features\n\n- Automatically scans your database schema for tables and their relationships.\n- Generates ERD diagrams in PDF format using Graphviz.\n- Extensible design with support for multiple database drivers.\n\n---\n\n## Installation\n\n### Requirements\n- PHP 8.1 or higher\n- Laravel 9.x or higher\n- [Graphviz](https://graphviz.org/) installed on your system\n\n### Step 1: Install the package\n```bash\ncomposer require rtcoder/laravel-db-erd\n```\n\n### Step 2: Publish the configuration (optional)\nIf you need to customize the behavior, publish the configuration file:\n\n```bash\nphp artisan vendor:publish --tag=db-erd-config\n```\nIf you need to customize the views, you can publish them using:\n\n```bash\nphp artisan vendor:publish --tag=db-erd-views\n```\nThis will copy the default views to your project's `resources/views/vendor/laravel-erd` directory, where you can modify them as needed.\n\n### Step 3: Install Graphviz\nEnsure Graphviz is installed on your system.\n\n#### On macOS:\n```bash\nbrew install graphviz\n```\n\n#### On Ubuntu:\n```bash\nsudo apt install graphviz\n```\n\n#### On Windows:\nDownload and install from [Graphviz's official site](https://graphviz.org/).\n\n---\n\n## Usage\n**Generate an ERD** Run the following Artisan command to generate the ERD:\n```bash\nphp artisan erd:generate --output=storage/erd/erd_diagram.pdf --driver=mysql\n```\nThe `--output` option specifies the file path for the generated diagram.\n\n**Supported Databases**\n* MySQL\n* PostgreSQL\n* SQLite\n* SQL Server\n* Oracle\n\n**Supported output formats**\n* PDF\n* SVG\n* PNG\n* HTML\n\n## Configuration\nYou can customize the package by modifying the configuration file (`config/db-erd.php`):\n```php\nreturn [\n    'default_driver' =\u003e env('DB_ERD_DRIVER', 'mysql'),\n    'output_directory' =\u003e storage_path('erd'),\n    'output_name' =\u003e 'erd_diagram',\n    'output_format' =\u003e 'pdf',\n    'exclude_tables' =\u003e ['migrations', 'jobs', 'failed_jobs'],\n];\n```\n\n---\n\n## Troubleshooting\n1. `Graphviz not found` Error\\\nEnsure Graphviz is correctly installed and added to your system's PATH.\n\n2. Empty ERD Diagram\\\nVerify that your database schema has relationships (foreign keys).\n\n---\n## License\nThis package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtcoder%2Flaravel-db-erd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtcoder%2Flaravel-db-erd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtcoder%2Flaravel-db-erd/lists"}