PHPackages                             nonetallt/laravel-autoschema - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nonetallt/laravel-autoschema

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nonetallt/laravel-autoschema
============================

Generate markdown file describing all your laravel application models and their attributes.

1.0.0(8y ago)016MITPHPPHP &gt;=7.0

Since Jan 29Pushed 8y agoCompare

[ Source](https://github.com/nonetallt/laravel-autoschema)[ Packagist](https://packagist.org/packages/nonetallt/laravel-autoschema)[ RSS](/packages/nonetallt-laravel-autoschema/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

laravel-autoschema
==================

[](#laravel-autoschema)

Generate markdown file describing all your laravel application models and their attributes. The schema can be used as a reference for both front- and back-end developers to keep track of properties that should or should not exist for a given model.

[![Example output](https://camo.githubusercontent.com/8dbd5326d45e3ce247ab40b9577b8e99d10a894cacc6e108cd27202e9091a4ec/68747470733a2f2f692e696d6775722e636f6d2f4155754834434d2e706e67)](https://camo.githubusercontent.com/8dbd5326d45e3ce247ab40b9577b8e99d10a894cacc6e108cd27202e9091a4ec/68747470733a2f2f692e696d6775722e636f6d2f4155754834434d2e706e67)

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

[](#installation)

```
composer require nonetallt/laravel-autoschema --dev

```

Basic usage
-----------

[](#basic-usage)

```
php artisan schema:create

```

Properties
----------

[](#properties)

#### Attribute

[](#attribute)

The name of the attribute (usually column name).

#### Computed

[](#computed)

Properties that have an accessor (getXAttribute) defined but no column in database are considered computed properties.

#### Fillable

[](#fillable)

Is the attribute mass assignable.

#### Relation

[](#relation)

Is the attribute a method describing a relation.

#### Serialized

[](#serialized)

Is the attribute present after the object is serialized (to array or json). n/a for relations since it's not possible to know wether the object is loaded with a relation by static analysis. Useful for front-end developers since objects are serialized for responses.

Managing relations
------------------

[](#managing-relations)

Unfortunately, unlike the other properties, relations for models can't be easily distinguished by method signature or framework alone. To list your relations in the model you need to use @relation annotation in the relation method docblock.

```
/**
* @relation
*/
public function addresses()
{
    return $this->hasMany('App\Address', 'address_list_name', 'name');
}
```

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

[](#configuration)

#### Publishing the configuration file

[](#publishing-the-configuration-file)

```
php artisan vendor:publish --provider="Nonetallt\LaravelAutoschema\AutoschemaServiceProvider"

```

#### Available options

[](#available-options)

- output\_path
- model\_directory
- model\_namespace
- yes\_string
- no\_string
- print\_table\_name

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/022935c18503b8dff233563d6791746f4a0d7fee43977a1c9f2664806dea632b?d=identicon)[nonetallt](/maintainers/nonetallt)

---

Top Contributors

[![nonetallt](https://avatars.githubusercontent.com/u/22174322?v=4)](https://github.com/nonetallt "nonetallt (8 commits)")

---

Tags

phplaravelschemadocumentationmodels

### Embed Badge

![Health badge](/badges/nonetallt-laravel-autoschema/health.svg)

```
[![Health](https://phpackages.com/badges/nonetallt-laravel-autoschema/health.svg)](https://phpackages.com/packages/nonetallt-laravel-autoschema)
```

###  Alternatives

[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[genericmilk/docudoodle

Generate documentation for your Laravel application using OpenAI

15120.5k](/packages/genericmilk-docudoodle)[josezenem/laravel-slugidable

A package for Laravel that creates slugs for Eloquent models based on title and ID

1159.5k](/packages/josezenem-laravel-slugidable)

PHPackages © 2026

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