PHPackages                             ercogx/factory-generator-for-laravel - 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. ercogx/factory-generator-for-laravel

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

ercogx/factory-generator-for-laravel
====================================

A library that automatically fills the definition() method in the factory based on DB columns

1.0.1(1y ago)05MITPHP

Since Sep 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ercogx/factory-generator-for-laravel)[ Packagist](https://packagist.org/packages/ercogx/factory-generator-for-laravel)[ RSS](/packages/ercogx-factory-generator-for-laravel/feed)WikiDiscussions main Synced 2d ago

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

Factory Generator For Laravel
=============================

[](#factory-generator-for-laravel)

This library automatically fills the definition() method in the factory based on DB columns

> The library is unlikely to generate all the fields for your model. The entities are very different, you will most likely have to edit some fields manually. It is just an attempt to simplify the routine process. I will be glad for additions to FakerMapper

Install
-------

[](#install)

```
composer require --dev ercogx/factory-generator-for-laravel
```

Usage
-----

[](#usage)

```
php artisan make:generate-factory User
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Ercogx](https://github.com/ercogx)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

652d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22002063?v=4)[Vitaliy](/maintainers/Ercogx)[@Ercogx](https://github.com/Ercogx)

---

Top Contributors

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

---

Tags

laravelfactoryfakerautogenerate

### Embed Badge

![Health badge](/badges/ercogx-factory-generator-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ercogx-factory-generator-for-laravel/health.svg)](https://phpackages.com/packages/ercogx-factory-generator-for-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

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

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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