PHPackages                             hisee/db-digram - 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. [Database &amp; ORM](/categories/database)
4. /
5. hisee/db-digram

ActiveLibrary[Database &amp; ORM](/categories/database)

hisee/db-digram
===============

Laravel package to visualize and manage database schema with an interactive DB diagram UI.

v1.5.0(3mo ago)106031[1 issues](https://github.com/hussainna/db-digram-package/issues)MITJavaScriptPHP ^8.2

Since Mar 14Pushed 3mo agoCompare

[ Source](https://github.com/hussainna/db-digram-package)[ Packagist](https://packagist.org/packages/hisee/db-digram)[ RSS](/packages/hisee-db-digram/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (8)Versions (7)Used By (0)

[![DB Digram UI](./public/image.png)](./public/image.png)

DB Digram
=========

[](#db-digram)

Interactive database diagram builder for Laravel.

This package provides a visual UI to inspect your schema, create/update/delete tables and columns, and export SQL.

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

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12

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

[](#installation)

### Use this command to install it

[](#use-this-command-to-install-it)

```
composer require hisee/db-digram
```

Service Provider
----------------

[](#service-provider)

Laravel package auto-discovery is enabled, so no manual provider registration is required.

If your app has auto-discovery disabled, register the provider manually in bootstrap/providers.php:

```
Hussain\DBDigram\DbDigramServiceProvider::class,
```

Publish Config
--------------

[](#publish-config)

After installation, publish the package config file:

```
php artisan vendor:publish --tag=db-digram-config
```

This creates `config/db-digram.php` in your app where you can enable/disable the package:

```
return [
	'enabled' => true,
	'auth' => [
		'enabled' => false,
		'email' => '',
		'password' => '',
		'realm' => 'DB Diagram Access',
	],
];
```

You can also configure these values in `.env`:

```
DB_DIGRAM_AUTH_ENABLED=true
DB_DIGRAM_AUTH_EMAIL=admin@example.com
DB_DIGRAM_AUTH_PASSWORD=secret-password
DB_DIGRAM_AUTH_REALM="DB Diagram Login"
```

When auth is enabled, the page shows a login modal before the diagram is displayed.

[![Authentication Modal](./public/authentication.png)](./public/authentication.png)

Usage
-----

[](#usage)

Start your app and open:

- /diagram

Main capabilities in the UI:

- View current database schema
- Add table
- Edit table name and table columns
- Delete table
- Add/edit/delete columns
- Define foreign key relationships
- Zoom controls and auto zoom
- Export schema SQL
- Toggle dark and light mode

Important Notes
---------------

[](#important-notes)

- Schema actions create migration files in your host app under database/migrations.
- Table and column changes are applied by running migrations internally.
- Use carefully in production environments.
- Keep backups before destructive schema changes.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance80

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Every ~2 days

Total

6

Last Release

92d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95435166?v=4)[hussain\_alasdy](/maintainers/hussainna)[@hussainna](https://github.com/hussainna)

---

Tags

laravelschemadatabasediagram

### Embed Badge

![Health badge](/badges/hisee-db-digram/health.svg)

```
[![Health](https://phpackages.com/badges/hisee-db-digram/health.svg)](https://phpackages.com/packages/hisee-db-digram)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

276.8k](/packages/ntanduy-cloudflare-d1-database)

PHPackages © 2026

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