PHPackages                             stolz/laravel-schema-spy - 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. stolz/laravel-schema-spy

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

stolz/laravel-schema-spy
========================

Laravel artisan command that uses JAVA schemaSpy tool to generate a graphical representation of a database schema

0.1.2(6y ago)4521.8k1MITPHPPHP &gt;=5.4.0

Since Jun 2Pushed 6y ago6 watchersCompare

[ Source](https://github.com/Stolz/laravel-schema-spy)[ Packagist](https://packagist.org/packages/stolz/laravel-schema-spy)[ RSS](/packages/stolz-laravel-schema-spy/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Laravel SchemaSpy
=================

[](#laravel-schemaspy)

[Laravel SchemaSpy](https://github.com/Stolz/laravel-schema-spy) is a [Laravel artisan command](https://laravel.com/docs/master/artisan) that acts as an interface for the program [SchemaSpy](http://schemaspy.sourceforge.net). With SchemaSpy you can analyze the schema metadata of a database and generate browser readable files with useful information such:

- Visual ER diagram.
- Proper table insertion/deletion order for database migrations.

SchemaSpy is much more than that so please check the [official site](http://schemaspy.sourceforge.net) to see the full power of the tool.

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

[](#requirements)

Before installing the package make sure the following requirements are installed on your system:

- [JAVA &gt;=5](http://www.java.com/getjava/).
- [SchemaSpy](http://schemaspy.sourceforge.net) JAR file:
- The proper JAVA connector for your database system (i.e: [MySQL](http://dev.mysql.com/downloads/connector/j/)).
- The `dot` command from [Graphviz](http://www.graphviz.org/) should be accessible via the **PATH** environment variable.

Graphviz itself is not required, only its `dot` command is used to generated the output.

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

[](#installation)

Install via [Composer](https://getcomposer.org/)

```
composer require stolz/laravel-schema-spy --dev

```

If you are using an old version of Laravel or if you have disabled its package discovery feature, then you have to manually edit `config/app.php` file and register the service provider under `providers` key

```
'providers' => array(
	...
	Stolz\SchemaSpy\ServiceProvider::class,
	...

```

Usage
-----

[](#usage)

```
php artisan db:spy [connection]

```

If no connection is provided Laravel's default one will be used. After successfully running the command open the file `[output-dir]/index.html` with your browser.

Configuration
-------------

[](#configuration)

To configure the package use the following command to copy the configuration file to `config/spy.php`.

```
php artisan vendor:publish

```

All available settings are included inside `spy.php` and with the provided comments they should be self-explanatory.

Laravel 4
---------

[](#laravel-4)

If you are still using Laravel 4 instead of loading `Stolz\SchemaSpy\ServiceProvider` use `Stolz\SchemaSpy\LegacyServiceProvider` and manually copy the config file:

```
cp vendor/stolz/laravel-schema-spy/src/config.php app/config/spy.php

```

License
-------

[](#license)

MIT License © [Stolz](https://github.com/Stolz)

Read the provided `LICENSE` file for details.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~642 days

Total

4

Last Release

2435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0471c7d87aae4a16a5cb6a04f44963ae1756b29bfa27c4fe7d2fdf479bdbbf6e?d=identicon)[Stolz](/maintainers/Stolz)

---

Top Contributors

[![Stolz](https://avatars.githubusercontent.com/u/291060?v=4)](https://github.com/Stolz "Stolz (23 commits)")

---

Tags

laravelschemadatabasesqler diagramschemaspyschema-spy

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/stolz-laravel-schema-spy/health.svg)

```
[![Health](https://phpackages.com/badges/stolz-laravel-schema-spy/health.svg)](https://phpackages.com/packages/stolz-laravel-schema-spy)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[eusonlito/laravel-database-cache

Cache Database Query results on Laravel Query Builder or Eloquent

194.2k](/packages/eusonlito-laravel-database-cache)[sarfraznawaz2005/indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.

562.7k](/packages/sarfraznawaz2005-indexer)

PHPackages © 2026

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