PHPackages                             nachofassini/laravel-database-structure - 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. nachofassini/laravel-database-structure

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

nachofassini/laravel-database-structure
=======================================

Package that generates a php file with the tables and fields of the database after running all the migrations

2.0.0(8y ago)14.3k↓66.7%MITPHPPHP ^7.1

Since Jul 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nachofassini/laravel-database-structure)[ Packagist](https://packagist.org/packages/nachofassini/laravel-database-structure)[ RSS](/packages/nachofassini-laravel-database-structure/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Package that generates a schema file
====================================

[](#package-that-generates-a-schema-file)

Install
-------

[](#install)

You can pull in the package via composer:

```
    composer require nachofassini/laravel-database-structure
```

For laravel &lt; 5.6: the service provider must be registered:

```
    // config/app.php
    'providers' => [
        ...
        NachoFassini\LaravelDatabaseStructure\ServiceProvider::class,

    ];
```

How to generate schema file
---------------------------

[](#how-to-generate-schema-file)

To generate schema file just type in the console:

```
    php artisan schema:file
```

The file should be generated at your database path like `schema.php` and would look like these:

```
    $tables => [
        'users' => [
            'id',
            'name',
            'email',
            'created_at',
            ...
        ],
        'posts' => [
            'user_id',
            'title',
            ...
        ]
    ];
```

There are no conventions about this, but I think this file should be ignored.

Automatic update on migrations
------------------------------

[](#automatic-update-on-migrations)

If you want the file to be updated every time you change the database through any migrate command, just set `AUTOMATIC_SCHEMA_FILE=true` in your .env file.

This will make that after executing any kind of migration command, the schema file gets up to date with the final database structure.

Contributing
------------

[](#contributing)

I think this can be much more useful, any collaboration is appreciated.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~294 days

Total

2

Last Release

2969d ago

Major Versions

v1.0.0 → 2.0.02018-05-17

PHP version history (2 changes)v1.0.0PHP ^5.6|^7.0

2.0.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b34b80a7795be421a3936a09ab031d09d61647794c5169cd8971c9246b22ffc?d=identicon)[nachofassini](/maintainers/nachofassini)

---

Top Contributors

[![nachofassini](https://avatars.githubusercontent.com/u/7388586?v=4)](https://github.com/nachofassini "nachofassini (12 commits)")

---

Tags

laravelschemadatabasestructureschema-file

### Embed Badge

![Health badge](/badges/nachofassini-laravel-database-structure/health.svg)

```
[![Health](https://phpackages.com/badges/nachofassini-laravel-database-structure/health.svg)](https://phpackages.com/packages/nachofassini-laravel-database-structure)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M6](/packages/propaganistas-laravel-disposable-email)[tallstackui/tallstackui

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

725173.0k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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