Weave 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

Doctrine Fixtures Generator Bundle Laravel Package

webonaute/doctrine-fixtures-generator-bundle

A Symfony bundle that automatically generates Doctrine data fixtures for your entities, making it fast and easy to seed databases with realistic test or development data. Ideal for testing, demos, and local development.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Framework fit is the first decision. Despite being a PHP package, this is a Symfony bundle built on Doctrine ORM and doctrine/data-fixtures — it does not work in a Laravel/Eloquent application. The real decision it supports is "do we adopt this, or do we copy the idea?" For a Laravel codebase the answer is almost certainly the latter.
  • Build vs. buy. The underlying capability — "read N rows for Entity X and emit them as a fixture file" — is a small, single-purpose console command. At 64 stars, zero dependents, and a last release in June 2019, there is no vendor to buy from in any practical sense. Budget a 1–3 day spike to build an equivalent Artisan command (fixtures:export {model} {ids}) rather than take a dependency.
  • Developer-environment seeding. The core use case is turning a handful of real production/staging records into deterministic seed data for local dev, demo tenants, and QA environments — a recurring, low-glamour time sink that pays back across every engineer.
  • Bug reproduction workflow. Support/QA can snapshot the exact rows behind a ticket into a fixture, letting engineering reproduce against real shapes of data instead of hand-built fakes. This is a support-ops decision as much as an engineering one.
  • Test-data authoring. Reduces the manual effort of writing fixtures for integration tests and edge-case data shapes, particularly for entities with wide nullable/optional columns.
  • Roadmap signal, not roadmap item. Treat it as validation that "realistic seed data" is a felt need. If we build it, it belongs in an internal developer-tooling epic, not the product backlog.

When to Consider This Package

Adopt (or fork) only when all of these hold:

  • The stack is Symfony 3/4 + Doctrine ORM with doctrine/data-fixtures (and ideally Alice/Nelmio) already installed.
  • PHP version is old enough to satisfy the 2019 constraint — verify before committing; PHP 8.1+ is a real risk.
  • The need is narrow: a one-off or occasional export of specific entities by ID into YAML/PHP fixtures.
  • The team accepts an unmaintained dependency and can vendor/patch it locally if it breaks.

Look elsewhere — or build — when:

  • You are on Laravel. Non-starter; Eloquent models, service container bindings, and doctrine/* assumptions don't map. Build an Artisan command instead.
  • You need relational fidelity. Naively dumping by ID will break foreign keys and many-to-many joins; you'd need to walk relations recursively. The README makes no promises here, and 0 dependents means no community hardening.
  • You need maintained support. No releases in ~6 years, no security response, no PHP 8.x guarantee. Not viable for anything on a support contract or compliance path.
  • Production data is involved. Exporting real rows into fixture files is a PII/compliance hazard — fixtures get committed. Requires a redaction step, which this package does not provide.
  • Alternatives worth evaluating: spatie/laravel-db-snapshots (schema+data snapshots, Laravel-native), model factories + Faker for synthetic data, or a purpose-built subset-export command.

How to Pitch It (Stakeholders)

To executives (one line): A small open-source utility that turns real database records into reusable seed data — useful concept, but it's an abandoned Symfony-only tool with no adoption, so we should absorb the pattern internally rather than depend on it.

To engineering: This is a ~200-line console command wearing a bundle. It solves a genuine daily friction — hand-writing fixtures and reproducing bugs without realistic data — but it's Symfony/Doctrine-only, last released in 2019, zero downstream dependents, and carries real PII risk if pointed at production. Recommendation: do not adopt as a dependency. Run a short spike to build the equivalent as an Artisan command with an explicit redaction/allowlist step, relation-aware export, and a "never commit unredacted fixtures" guardrail. Upside is fast: low effort, immediately useful to QA and support, and it removes a recurring manual chore with no vendor lock-in.

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.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core