PHPackages                             wyattcast44/laravelschema - 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. wyattcast44/laravelschema

ActiveLibrary

wyattcast44/laravelschema
=========================

:description

3.0.0(5y ago)30365[2 PRs](https://github.com/WyattCast44/laravel-schema/pulls)MITPHP

Since Nov 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/WyattCast44/laravel-schema)[ Packagist](https://packagist.org/packages/wyattcast44/laravelschema)[ Docs](https://github.com/wyattcast44/laravelschema)[ RSS](/packages/wyattcast44-laravelschema/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (6)Versions (11)Used By (0)

Laravel Schema
==============

[](#laravel-schema)

[![Latest Stable Version](https://camo.githubusercontent.com/7fa168ad33258f2db774f0a5d746721fef4350114838b5e44871f759a0332983/68747470733a2f2f706f7365722e707567782e6f72672f77796174746361737434342f6c61726176656c736368656d612f76)](//packagist.org/packages/wyattcast44/laravelschema)[![Total Downloads](https://camo.githubusercontent.com/c29eeae56e925e87b6e9b6d4c4e8a002f5bd858cfd3ec50de511640d4bbe9cec/68747470733a2f2f706f7365722e707567782e6f72672f77796174746361737434342f6c61726176656c736368656d612f646f776e6c6f616473)](//packagist.org/packages/wyattcast44/laravelschema)

This is a simple package to generate schema files for your database tables.

For an example, the standard `users` table in a new laravel application will generate a file named `users.schema.json` that contains the contents below.

```
{
  "name": "users",
  "schema": {
    "id": "bigint",
    "name": "string",
    "email": "string",
    "email_verified_at": "datetime",
    "password": "string",
    "remember_token": "string",
    "created_at": "datetime",
    "updated_at": "datetime"
  }
}
```

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

[](#installation)

```
composer require wyattcast44/laravelschema
```

Usage
-----

[](#usage)

1. Schema files will be regenerated anytime you run migrations
2. You can manually trigger a build by running the command below

```
php artisan schema:generate
```

Config
------

[](#config)

You can publish the config file using the command below

```
php artisan vendor:publish --provider="WyattCast44\LaravelSchema\LaravelSchemaServiceProvider"
```

Once you have published the config file you can customize:

- Whether or not to automatically generate schema files when migrations are ran
- where the files will be generated, the default location is in `database\schemas`
- the file extension, the default is `.schema.json`
- you add any tables you would like to ignore

Why
---

[](#why)

This package helps you quickly and easily determine what field all your database tables have and the datatype for those fields.

As a project grows generally the number of migrations does as well, this can make it hard to determine by looking in one place what the final structure of a table is. You could open a database GUI and look there, but I wanted an easier way without leaving my code editor.

I hope you find this package useful in your workflow, I know I use it daily in mine :)

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Wyatt Castaneda](https://github.com/wyattcast44)
- [All Contributors](https://github.com/WyattCast44/laravel-schema/graphs/contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% 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 ~69 days

Recently: every ~81 days

Total

8

Last Release

1895d ago

Major Versions

0.3.0 → 1.0.02020-04-11

1.1.0 → 2.0.02020-04-15

2.1.0 → 3.0.02021-03-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ec1f5d67a8ace8451f50303ed7fc9185a8298b9a38dc4d47c3aeb283255e66d?d=identicon)[wyattcast44](/maintainers/wyattcast44)

---

Top Contributors

[![WyattCast44](https://avatars.githubusercontent.com/u/17957937?v=4)](https://github.com/WyattCast44 "WyattCast44 (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

laravellaravelschemalaravel-schema

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wyattcast44-laravelschema/health.svg)

```
[![Health](https://phpackages.com/badges/wyattcast44-laravelschema/health.svg)](https://phpackages.com/packages/wyattcast44-laravelschema)
```

###  Alternatives

[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[thedevsaddam/laravel-schema

Display the connected database information in console.

11627.9k1](/packages/thedevsaddam-laravel-schema)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[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)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[romegasoftware/laravel-schema-generator

Generate TypeScript Zod validation schemas from Laravel validation rules

288.2k](/packages/romegasoftware-laravel-schema-generator)

PHPackages © 2026

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