butschster/entity-faker
Generate fake PHP entities and persist them via your ORM using a simple factory. Define per-class attribute generators with Faker, support inheritance via raw attributes, and create single or multiple entities using Laminas hydrators/entity factories.
EntityFactory, cutting onboarding time for new developers or QA teams.EntityFactory overhaul).Adopt if:
User → Order → Product) and you need consistent, nested fake data for testing, now with a more robust factory system in v2.0.0.EntityFactory.Look Elsewhere if:
EntityFactory methods), as v2.0.0 introduces breaking changes (see changelog).For Executives:
"This package now offers a streamlined, refactored approach to generating realistic test data for our Laravel app in seconds—no more manual seeding or hardcoded placeholders. With v2.0.0, the EntityFactory redesign reduces boilerplate, making it even faster to populate demo databases (e.g., 10,000 fake users/orders/products) for QA or sales demos, cutting setup time by up to 70%. It’s low-risk (MIT license), integrates seamlessly with our existing codebase, and aligns with our goal to reduce technical debt in testing. The trade-off? We sacrifice some control over data specificity for speed, but the ROI is clear: faster iterations, fewer bugs from inconsistent test environments, and happier devs. The v2.0.0 refactor also future-proofs our investment, making it easier to maintain long-term."
For Engineers:
*"Entity-Faker v2.0.0 redesigns the EntityFactory to simplify fake data generation for Eloquent models. Key improvements:
User::fake() instead of verbose v1.x syntax).User::fake()->name('John Doe')) or add custom rules with simplified syntax.How can I help you explore Laravel packages today?