PHPackages                             soyhuce/laravel-8-factories - 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. soyhuce/laravel-8-factories

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

soyhuce/laravel-8-factories
===========================

Laravel 8 factories for Laravel 7

0.2.1(5y ago)31.9kMITPHPPHP ^7.3|^8.0

Since May 18Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Soyhuce/laravel-8-factories)[ Packagist](https://packagist.org/packages/soyhuce/laravel-8-factories)[ RSS](/packages/soyhuce-laravel-8-factories/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (3)Versions (13)Used By (0)

Laravel 8 model factories for Laravel 7
=======================================

[](#laravel-8-model-factories-for-laravel-7)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4467e415d70938ccdd0b616d84bf892fe1017a046e89a6763e5145f5e3181703/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f6c61726176656c2d382d666163746f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-8-factories)[![Total Downloads](https://camo.githubusercontent.com/71fca150ef669e50a803791959de887d14ad342558fa45fbf85714c4c4059365/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f6c61726176656c2d382d666163746f726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-8-factories)

This package is an extraction of class-based Laravel 8 model factories in order to use them in Laravel 7.

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

[](#installation)

You should install this package using composer :

```
composer require --dev soyhuce/laravel-8-factories
```

Then, publish factory stub

```
mkdir -p stubs
cp vendor/soyhuce/laravel-8-factories/assets/factory.stub stubs/factory.stub
```

Add in your `composer.json` autoload-dev psr-4 configuration

```
"autoload-dev": {
    "psr-4": {
        "Database\\Factories\\": "database/factories"
    }
},
```

Documentation
-------------

[](#documentation)

There is not documentation yet but feel free to contribute in [laravel/doc](https://github.com/laravel/docs) repository.

Bugs
----

[](#bugs)

The only goal of this project is being able to use Laravel 8 model factories. If it has some bugs, please report them in [laravel/framework](https://github.com/laravel/framework).

Contributing
------------

[](#contributing)

You can contribute on model factories directly on [laravel/framework](https://github.com/laravel/framework).

If this package needs to be updated, feel free to PR. A `composer update-sources` command is available for this.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Recently: every ~49 days

Total

11

Last Release

1988d ago

PHP version history (2 changes)0.1.0PHP ^7.2.5

0.2.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19587451?v=4)[SoyHuCe](/maintainers/SoyHuCe)[@Soyhuce](https://github.com/Soyhuce)

---

Top Contributors

[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (15 commits)")

### Embed Badge

![Health badge](/badges/soyhuce-laravel-8-factories/health.svg)

```
[![Health](https://phpackages.com/badges/soyhuce-laravel-8-factories/health.svg)](https://phpackages.com/packages/soyhuce-laravel-8-factories)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

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

245.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/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)
