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 1mo 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 27% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

599d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[skovachev/fakefactory

A model factory package for Laravel 4 with expressive API for creating custom tailored dummy objects

291.1k](/packages/skovachev-fakefactory)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)

PHPackages © 2026

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