PHPackages                             mlo/factory-bot - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. mlo/factory-bot

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

mlo/factory-bot
===============

Create fixtures for testing

v0.3.1(8y ago)118MITPHPPHP ^7.1

Since Dec 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mloberg/factory-bot-php)[ Packagist](https://packagist.org/packages/mlo/factory-bot)[ RSS](/packages/mlo-factory-bot/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Factory Bot PHP
===============

[](#factory-bot-php)

[![Build Status](https://camo.githubusercontent.com/449f552b2a1eb3876b4a79339678b400613d29f3f57ea9d2b444f6e512d72642/68747470733a2f2f7472617669732d63692e6f72672f6d6c6f626572672f666163746f72792d626f742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mloberg/factory-bot-php)

Factory Bot is a fixture generation library for PHP inspired by [factory\_bot](https://github.com/thoughtbot/factory_bot).

Usage
-----

[](#usage)

See `tests/` for some examples for now.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

5

Last Release

3092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b7bb02bd7aebd8ca0d722ceb4162a00dc9b0e523ce9b5eb7b88d8fef6bff43f?d=identicon)[mloberg](/maintainers/mloberg)

---

Tags

testingfactoryFixture

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mlo-factory-bot/health.svg)

```
[![Health](https://phpackages.com/badges/mlo-factory-bot/health.svg)](https://phpackages.com/packages/mlo-factory-bot)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k27.9M2.2k](/packages/infection-infection)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

79513.1M132](/packages/zenstruck-foundry)[api-platform/symfony

Symfony API Platform integration

354.0M110](/packages/api-platform-symfony)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69619.1M606](/packages/spatie-phpunit-snapshot-assertions)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15311.8M36](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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