PHPackages                             dereuromark/cakephp-fixture-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. [Testing &amp; Quality](/categories/testing)
4. /
5. dereuromark/cakephp-fixture-factories

ActiveCakephp-plugin[Testing &amp; Quality](/categories/testing)

dereuromark/cakephp-fixture-factories
=====================================

A CakePHP plugin for creating test fixtures dynamically with factory pattern

2.0.0(1mo ago)218.6k↑120.9%1[2 issues](https://github.com/dereuromark/cakephp-fixture-factories/issues)MITPHPPHP &gt;=8.2CI passing

Since Aug 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dereuromark/cakephp-fixture-factories)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-fixture-factories)[ Docs](https://dereuromark.github.io/cakephp-fixture-factories/)[ RSS](/packages/dereuromark-cakephp-fixture-factories/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (47)Versions (56)Used By (0)

 [![ff-logo](https://camo.githubusercontent.com/758490ab5327331f87be38438dc140bcc1dfb6dc1edd6c5baf7b0eb060976333/68747470733a2f2f7669657267652d6e6f6972652e6769746875622e696f2f696d616765732f666978747572655f666163746f726965732e737667)](https://dereuromark.github.io/cakephp-fixture-factories/)

CakePHP Fixture Factories
==========================

[](#cakephp-fixture-factories)

### Write and run your tests faster. On any PHP application.

[](#write-and-run-your-tests-faster-on-any-php-application)

 [![Build Status](https://github.com/dereuromark/cakephp-fixture-factories/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/dereuromark/cakephp-fixture-factories/actions/workflows/ci.yml?query=branch%3Amain) [![Coverage Status](https://camo.githubusercontent.com/007c4b651e099f728f43634c85775299fb7375e74565ce99ca3894f64f0c4098/68747470733a2f2f636f6465636f762e696f2f67682f6465726575726f6d61726b2f63616b657068702d666978747572652d666163746f726965732f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/dereuromark/cakephp-fixture-factories) [![Latest Stable Version](https://camo.githubusercontent.com/d2ddff7ea480aa00188a32aec4959ea8261808a8fe9055a890b54acdcd0bc028/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d666978747572652d666163746f726965732f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-fixture-factories) [![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/) [![PHPStan Level 8](https://camo.githubusercontent.com/d117944b58da8146f96b4ef7403807610a20eeb3fbcaaaf95157bbcdad1686eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e737667)](https://phpstan.org/) [![License](https://camo.githubusercontent.com/1ceecabd11ec2857b49524eb50e45bb92009b83fe390e8d78d3ee75576aaf535/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d666978747572652d666163746f726965732f6c6963656e73652e737667)](LICENSE) [![Total Downloads](https://camo.githubusercontent.com/73e7a38883a2ef83ec859cdd8c9ef7714c8ee6f0e323662220f5c49b36834ae6/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d666978747572652d666163746f726965732f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-fixture-factories) [![Coding Standards](https://camo.githubusercontent.com/7d06840986f78de39fb7ba7052db7208fb349427094ac1a4540449ca87776aff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d506870436f6c6c6563746976652d707572706c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-collective/code-sniffer)

This branch is for **CakePHP 5.0+**. See [version map](https://github.com/dereuromark/cakephp-fixture-factories/wiki#cakephp-version-map) for details.

A maintained fork of [vierge-noire/cakephp-fixture-factories](https://github.com/vierge-noire/cakephp-fixture-factories) with:

- Multiple data generators via adapters (Faker, DummyGenerator, custom).
- Modern configurable generator type guessing per field name/type when baking.

📚 Documentation
---------------

[](#-documentation)

**👉 [dereuromark.github.io/cakephp-fixture-factories](https://dereuromark.github.io/cakephp-fixture-factories/)**

The full guide, reference, and migration notes live there.

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

[](#installation)

```
composer require --dev dereuromark/cakephp-fixture-factories
```

Quick Example
-------------

[](#quick-example)

```
ArticleFactory::new()
    ->count(5)
    ->with('Authors[3].Address.City.Country')
    ->saveMany();
```

Five articles, each with three authors, each with an address chain — persisted, in one expression.

See [Getting Started](https://dereuromark.github.io/cakephp-fixture-factories/guide/) for the full walkthrough.

Resources
---------

[](#resources)

[CakeFest 2021](https://www.youtube.com/watch?v=1WrWH2F_hWE) - [IPC-Berlin 2020](https://www.youtube.com/watch?v=yJ6EqAE2NEs) - [CakeFest 2020](https://www.youtube.com/watch?v=PNA1Ck2-nVc&t=30s)

Contribute
----------

[](#contribute)

Send PRs or tickets in GitHub.

Authors
-------

[](#authors)

Previously, Juan Pablo Ramirez and Nicolas Masson. This fork is maintained by Mark Scherer (dereuromark).

License
-------

[](#license)

The CakePHPFixtureFactories plugin is offered under an [MIT license](https://opensource.org/licenses/mit-license.php).

Copyright 2023 Juan Pablo Ramirez and Nicolas Masson.

Licensed under The MIT License. Redistributions of files must retain the above copyright notice.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance73

Regular maintenance activity

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.2% 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 ~12 days

Recently: every ~2 days

Total

24

Last Release

36d ago

Major Versions

0.1.3 → 1.0.02025-11-06

1.4.1 → 2.0.0-beta.12026-05-06

1.4.2 → 2.0.0-beta.22026-05-07

1.4.3 → 2.0.0-rc.32026-05-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![pabloelcolombiano](https://avatars.githubusercontent.com/u/23249541?v=4)](https://github.com/pabloelcolombiano "pabloelcolombiano (452 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (172 commits)")[![LordSimal](https://avatars.githubusercontent.com/u/9105243?v=4)](https://github.com/LordSimal "LordSimal (17 commits)")[![ishanvyas22](https://avatars.githubusercontent.com/u/17404636?v=4)](https://github.com/ishanvyas22 "ishanvyas22 (9 commits)")[![ckbx-cakebox](https://avatars.githubusercontent.com/u/21092903?v=4)](https://github.com/ckbx-cakebox "ckbx-cakebox (5 commits)")[![liqueurdetoile](https://avatars.githubusercontent.com/u/28799444?v=4)](https://github.com/liqueurdetoile "liqueurdetoile (5 commits)")[![jsm222](https://avatars.githubusercontent.com/u/4705090?v=4)](https://github.com/jsm222 "jsm222 (4 commits)")[![dreamingmind](https://avatars.githubusercontent.com/u/1307216?v=4)](https://github.com/dreamingmind "dreamingmind (4 commits)")[![Erwane](https://avatars.githubusercontent.com/u/712604?v=4)](https://github.com/Erwane "Erwane (1 commits)")[![mbamarante](https://avatars.githubusercontent.com/u/409833?v=4)](https://github.com/mbamarante "mbamarante (1 commits)")[![MolbioUnige](https://avatars.githubusercontent.com/u/27211819?v=4)](https://github.com/MolbioUnige "MolbioUnige (1 commits)")[![o0h](https://avatars.githubusercontent.com/u/907122?v=4)](https://github.com/o0h "o0h (1 commits)")[![jamisonbryant](https://avatars.githubusercontent.com/u/6774110?v=4)](https://github.com/jamisonbryant "jamisonbryant (1 commits)")

---

Tags

cakephpcakephp-pluginfixture-factoriesphpplugintest-fixturestestingclidevfakerfixturescakephptestsdynamicfactories

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dereuromark-cakephp-fixture-factories/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-cakephp-fixture-factories/health.svg)](https://phpackages.com/packages/dereuromark-cakephp-fixture-factories)
```

###  Alternatives

[vierge-noire/cakephp-fixture-factories

CakePHP Dynamic Fixtures

84982.0k15](/packages/vierge-noire-cakephp-fixture-factories)[dama/doctrine-test-bundle

Symfony bundle to isolate doctrine database tests and improve test performance

1.2k40.8M217](/packages/dama-doctrine-test-bundle)[orchestra/testbench-core

Testing Helper for Laravel Development

27248.1M388](/packages/orchestra-testbench-core)[cakephp/migrations

Database Migration plugin for CakePHP

13812.9M299](/packages/cakephp-migrations)[testo/testo

A lightweight PHP testing framework.

1959.3k55](/packages/testo-testo)[friendsofcake/fixturize

CakePHP Fixture classes to help increase productivity or performance

24520.3k1](/packages/friendsofcake-fixturize)

PHPackages © 2026

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