PHPackages                             mcmatters/laravel-factory-generators - 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. mcmatters/laravel-factory-generators

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

mcmatters/laravel-factory-generators
====================================

v1.1(6y ago)41421MITPHPPHP &gt;=7.0CI failing

Since May 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MCMatters/laravel-factory-generators)[ Packagist](https://packagist.org/packages/mcmatters/laravel-factory-generators)[ RSS](/packages/mcmatters-laravel-factory-generators/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (8)Versions (7)Used By (0)

Laravel Factory Generators
--------------------------

[](#laravel-factory-generators)

Generate factories for all non-created factories of models.

### Installation

[](#installation)

```
composer require mcmatters/laravel-factory-generators
```

Include the service provider within your `config/app.php` file.

```
'providers' => [
    McMatters\FactoryGenerators\ServiceProvider::class,
]
```

Publish the configuration.

```
php artisan vendor:publish --provider="McMatters\FactoryGenerators\ServiceProvider"
```

Then open the `config/factory-generators.php` and configure paths where your models are locating.

### Advanced configuration

[](#advanced-configuration)

NameDescriptionfolders`models` - path where models are locating
`factories` - path where factories are locating.follow\_subdirectoriesEnable this option if your models are in subdirectories and you wish to keep the structure of the folders. For example, if your model has next namespace: `App\Models\User\Profile` it will generate in your factories folder subdirectory with name `User` including `ProfileFactory.php` file.
**NOTE:** If you enable this option, please specify the root namespace.model\_namespaceRequires only, if you enabled option above.typesAn array of custom types for DBAL. For example: `'json' => 'string'`.prefixPrefix for factory files.suffixSuffix for factory files.skip\_columnsAn array of the global column names for skipping, for example, you may wish to skip `created_at` and `updated_at` columns in all models.skip\_modelsAn array of the fully qualified model names for skipping.skip\_model\_columnsAn associative array with skipping columns for specific model. Example: `'App\Models\User' => ['password', 'remember_token']`.align\_array\_keysIf this option will be enabled, all your factories will include aligned array keys.Usage
-----

[](#usage)

Just run the command `php artisan factory:generate`.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Recently: every ~271 days

Total

6

Last Release

2208d ago

### Community

Maintainers

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

---

Top Contributors

[![MCMatters](https://avatars.githubusercontent.com/u/3148853?v=4)](https://github.com/MCMatters "MCMatters (10 commits)")

### Embed Badge

![Health badge](/badges/mcmatters-laravel-factory-generators/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M169](/packages/laravel-ai)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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