Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Factory Muffin

Factory Muffin Laravel Package

league/factory-muffin

Factory Muffin helps you rapidly create test objects in PHP with simple, reusable model factories (inspired by factory_girl). Define models and generate instances for fixtures and unit tests; optional Faker integration is available via factory-muffin-faker.

View on GitHub
Deep Wiki
Context7

league/factory-muffin is a lightweight test data factory for PHP, inspired by factory_girl, designed to rapidly create objects for unit and integration testing. It provides a fluent API to define model blueprints and generate consistent instances, with optional Faker integration via league/factory-muffin-faker.

Key features:

  • Define factories for fully-qualified class names with reusable attribute definitions
  • Quickly create and persist objects for tests with minimal boilerplate
  • Optional Faker-powered fake data generation via a dedicated adapter package
  • Supports multiple FactoryMuffin instances for flexible test setups
  • Includes an upgrade guide to ease migration between versions
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport