PHPackages                             noouh/auto-model-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. [Database &amp; ORM](/categories/database)
4. /
5. noouh/auto-model-fillable

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

noouh/auto-model-fillable
=========================

A Laravel package to auto-generate Fillable to models from table definitions.

v2(1y ago)09MITPHPPHP ^7.3|^8.0

Since Jul 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mohamedhekal/Noouh-Laravel-fillable-Generator)[ Packagist](https://packagist.org/packages/noouh/auto-model-fillable)[ RSS](/packages/noouh-auto-model-fillable/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Noouh Auto Model - Fillable V2
==============================

[](#noouh-auto-model---fillable-v2)

A Laravel package to auto-generate fillable properties for models based on table definitions from a JSON file.

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

[](#installation)

You can install the package via composer:

```
composer require noouh/auto-model-fillable
```

Usage
-----

[](#usage)

To generate fillable properties for all models based on table definitions from a JSON file, use the following command:

```
php artisan noouh:generate-fillable path/to/your/json/file.json
```

### Example JSON File

[](#example-json-file)

The JSON file should contain the table definitions with the columns. Here is an example structure:

```
[
  {
    "table": "users",
    "columns": [
      {
        "name": "id",
        "type": "int",
        "primaryKey": true,
        "autoIncrement": true
      },
      { "name": "name", "type": "string" },
      { "name": "email", "type": "string" }
    ]
  },
  {
    "table": "posts",
    "columns": [
      {
        "name": "id",
        "type": "int",
        "primaryKey": true,
        "autoIncrement": true
      },
      { "name": "title", "type": "string" },
      { "name": "content", "type": "text" },
      { "name": "user_id", "type": "unsignedBigInteger" }
    ],
    "relationships": [
      { "type": "belongsTo", "relatedTable": "users", "foreignKey": "user_id" }
    ]
  }
]
```

### How It Works

[](#how-it-works)

1. **Loop Through Model Files:** The script loops through all model files in the `app/Models` directory.
2. **Extract Table Name:** It extracts the table name from each model file using the `$table` property.
3. **Get Columns from JSON:** It retrieves the columns for the corresponding table from the provided JSON file.
4. **Update Fillable Properties:** It updates the model file with the fillable properties if the table and columns are found.

### About the Company

[](#about-the-company)

Noouh For Integrated Solutions is dedicated to providing innovative software solutions. We specialize in developing high-quality applications tailored to meet the specific needs of our clients.

Email:

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9d7c092a109fe780c7efd87ce4142eae2c0cec0f92fd1e87e769bec5661953b?d=identicon)[mohamedhekal](/maintainers/mohamedhekal)

---

Top Contributors

[![mohamedhekal](https://avatars.githubusercontent.com/u/21014387?v=4)](https://github.com/mohamedhekal "mohamedhekal (3 commits)")

### Embed Badge

![Health badge](/badges/noouh-auto-model-fillable/health.svg)

```
[![Health](https://phpackages.com/badges/noouh-auto-model-fillable/health.svg)](https://phpackages.com/packages/noouh-auto-model-fillable)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

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

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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