PHPackages                             leo-yi/laravel-fillable - 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. leo-yi/laravel-fillable

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

leo-yi/laravel-fillable
=======================

A Laravel package that generates php array keys from table fields

v2.2.2(4y ago)150MITPHPPHP ^7.2|^8.0

Since Dec 15Pushed 4y agoCompare

[ Source](https://github.com/leo-yi/laravel-fillable)[ Packagist](https://packagist.org/packages/leo-yi/laravel-fillable)[ Docs](https://github.com/leo-yi/laravel-fillable)[ GitHub Sponsors](https://github.com/leo-yi)[ RSS](/packages/leo-yi-laravel-fillable/feed)WikiDiscussions main Synced 1mo ago

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

a laravel package show table columns and comment
================================================

[](#a-laravel-package-show-table-columns-and-comment)

[中文文档](./README_zh-CN.md)

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

[](#installation)

laravel framework require
-------------------------

[](#laravel-framework-require)

- leo-yi/laravel-fillable:^2.0 -&gt; Laravel &gt;= 7.0
- leo-yi/laravel-fillable:^1.0 -&gt; Laravel ^6.0

You can install the package via composer:

Laravel &gt;= 7.0 :

```
composer require leo-yi/laravel-fillable --dev
```

Laravel ^6.0 :

```
composer require leo-yi/laravel-fillable:1.5 --dev
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Leoyi\LaravelFillable\LaravelFillableServiceProvider" --tag="laravel-fillable"
```

Usage
-----

[](#usage)

### Default model: only columns

[](#default-model-only-columns)

```
php artisan fillable table_name
```

```
'id',
'title',
'age',
'created_at',
```

### First model: columns with table comment

[](#first-model-columns-with-table-comment)

```
php artisan fillable table_name 1
```

```
'id' => 'ID',
'name' => '名称',
'age' => '年龄',
'created_at' => '',
```

### Second model: table comment for array key comment

[](#second-model-table-comment-for-array-key-comment)

```
php artisan fillable table_name 2
```

```
'id' => '', // ID
'name' => '', // 名称
'age' => '', // 年龄
'created_at' => '', // 创建时间
```

### Third model: Generates an array of key-value pairs, excluding comments

[](#third-model-generates-an-array-of-key-value-pairs-excluding-comments)

```
php artisan fillable table_name 3
```

```
'id' => $this->id,
'name' => $this->name,
'age' => $this->age,
'created_at' => $this->created_at,
```

### Third model: Generates an array of key-value pairs, including comments

[](#third-model-generates-an-array-of-key-value-pairs-including-comments)

```
php artisan fillable table_name 4
```

```
'id' => $this->id, // ID
'name' => $this->name, // 名称
'age' => $this->age, // 年龄
'created_at' => $this->created_at, // 创建时间
```

### Fourth mode: model comment for phpstorm

[](#fourth-mode-model-comment-for-phpstorm)

```
php artisan fillable table_name 5
```

```
* @property bigint $id // Id
* @property string $name // 姓名
* @property int $age // 年龄
```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Recently: every ~1 days

Total

16

Last Release

1510d ago

Major Versions

v1.4 → v2.02022-02-23

v1.5 → v2.22022-03-22

v1.5.1 → v2.2.12022-03-25

v1.5.2 → v2.2.22022-03-25

PHP version history (4 changes)v1.0PHP &gt;=7.3

v2.0PHP &gt;=7.4

v1.5PHP ^7.2

v2.2PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c71f7c6c1ab1531dce8fd78ec07654307e76f6efb1130234b9548b153856dee9?d=identicon)[leo-yi](/maintainers/leo-yi)

---

Top Contributors

[![leo-yi](https://avatars.githubusercontent.com/u/8898106?v=4)](https://github.com/leo-yi "leo-yi (2 commits)")

---

Tags

laravellaravel-fillable

### Embed Badge

![Health badge](/badges/leo-yi-laravel-fillable/health.svg)

```
[![Health](https://phpackages.com/badges/leo-yi-laravel-fillable/health.svg)](https://phpackages.com/packages/leo-yi-laravel-fillable)
```

###  Alternatives

[hyn/multi-tenant

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

2.6k1.1M9](/packages/hyn-multi-tenant)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[foryoufeng/laravel-generator

A tool for generate Laravel code file

712.8k](/packages/foryoufeng-laravel-generator)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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