dereuromark / cakephp-fixture-factories
CakePHP Dynamic Fixtures
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 20
Open Issues: 3
Type:cakephp-plugin
Requires
- php: >=8.2
- cakephp/orm: ^5.0
- vierge-noire/cakephp-test-suite-light: ^3.0
Requires (Dev)
- cakephp/bake: ^3.0.0
- cakephp/migrations: ^4.7.0
- cakephp/twig-view: ^2.0.2
- fakerphp/faker: ^1.23
- johnykvsky/dummygenerator: ^0.0.7
- josegonzalez/dotenv: ^4.0.0
- php-collective/code-sniffer: dev-master
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.5
- vimeo/psalm: ^6.0
This package is auto-updated.
Last update: 2025-08-20 13:29:17 UTC
README
CakePHP Fixture Factories
Write and run your tests faster. On any PHP application.
Note: This is a maintained fork of the original CakePHPFixtureFactories.
Main differences:
- Supports multiple generators via adapters (chose your generator library).
- Modern configurable generator type guessing per field name/type.
ArticleFactory::make(5) ->with('Authors[3].Address.City.Country') ->persist();
Installation
composer require --dev dereuromark/cakephp-fixture-factories
Content
-
Setup - DB Cleaning
-
Fixture Factories
-
Test Fixtures
-
Associations
-
Associations for non-CakePHP apps
-
Scenarios
-
Queries
-
Bake command
-
Persist command
-
Generator Abstraction
Resources
CakeFest 2021 - IPC-Berlin 2020 - CakeFest 2020
Contribute
Send PRs or tickets in GitHub.
Authors
Previously, Juan Pablo Ramirez and Nicolas Masson. This fork is maintained by Mark Scherer (dereuromark)
License
The CakePHPFixtureFactories plugin is offered under an MIT license.
Copyright 2023 Juan Pablo Ramirez and Nicolas Masson
Licensed under The MIT License Redistributions of files must retain the above copyright notice.