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

Mongodb Migrations Bundle Laravel Package

graviton/mongodb-migrations-bundle

A Laravel bundle that adds MongoDB-aware migration support, letting you version, run, and roll back database changes through familiar artisan-style workflows. Simplifies schema and index management for MongoDB-backed apps while keeping migrations organized and repeatable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Schema change management for MongoDB — decides how index creation, collection validators, and data backfills get versioned, reviewed, and applied consistently across dev/staging/prod instead of being run ad hoc by hand.
  • Build vs. buy for migration tooling — gives a concrete third option (adopt a bundle) against the two obvious ones (write in-house console commands, or adopt a maintained alternative like doctrine/mongodb-odm migrations or Mongock). The decision hinges less on features than on who owns the code when it breaks at 2 a.m.
  • Release safety and rollback story — supports roadmap conversations about deploy gating in CI, idempotent migrations, and whether a failed migration can be reversed without a data restore. This is the decision with the largest blast radius.
  • Data-layer commitment — if MongoDB is becoming a first-class store for a product surface, migrations tooling is a small but non-negotiable platform investment. If MongoDB is a peripheral cache/queue, this decision can be deferred or solved with one-off scripts.
  • Concrete use cases worth scoping: multi-tenant index provisioning, large-collection backfills with batching, validator enforcement on new collections, and per-environment seed data.

Critical caveat to surface immediately: the package is described as a Symfony bundle (MongoDBMigrationsBundle), not a Laravel package. If our stack is Laravel, this is not an adoption question — it's a non-starter without a custom bridge, and the bridge would be more work than the in-house command it replaces. Confirm framework fit before any further evaluation.

Second caveat: zero stars and zero dependents means no community validation, no observable maintainer activity, and no evidence anyone has run this against a production dataset. Treat it as unvetted sample code, not a dependency.

When to Consider This Package

Consider it only when all of the following hold:

  • The codebase is Symfony and already comfortable with bundles registered through the DI container — the value here is the console integration, not novel migration logic.
  • MongoDB migrations are low-stakes (internal tooling, non-regulated data, small collections) so a silent failure is recoverable within a deploy window.
  • The team is willing to vendor or fork the code and accept ownership of bug fixes, security patches, and PHP/Symfony version compatibility.
  • A time-boxed spike has already proven it handles our real migration shapes — backfills, index builds on populated collections, and no-op re-runs.

Look elsewhere when any of the following apply:

  • Laravel is the stack. Use Laravel-native tooling or a maintained package; do not carry a Symfony bundle across the framework boundary.
  • Rollback and auditability are requirements. Compliance, financial, or customer-facing data means we need a tool with an active maintainer, documented rollback semantics, and a track record — none of which are present here.
  • You need support or an SLA. Zero stars and zero dependents means the support channel is "read the source."
  • Migration volume is high or the team is large. A dependency nobody maintains becomes a recurring tax on every framework upgrade; at scale, in-house ownership is cheaper than inherited ambiguity.
  • You can solve it in a day. If the need is a handful of index and validator changes, a small versioned command set is lower total cost than adopting, learning, and shepherding an unmaintained bundle.

How to Pitch It (Stakeholders)

To executives: This is a candidate for versioning MongoDB schema changes, and it is free. But the adoption signals are effectively absent — no stars, no known dependents, no evidence of production use — and it targets Symfony rather than Laravel. I am not recommending adoption. I am recommending a short evaluation spike against maintained alternatives so we make a deliberate tooling decision rather than accumulating hand-run scripts that become a release risk. Cost is not the issue; ownership and failure mode are.

To engineering: The bundle gives us a Symfony console command for applying versioned migration scripts with applied-state tracked in the database — a solved pattern, not new technology. The real question is whether we want to own a fork of unmaintained code. Recommended path: one-day spike to confirm framework fit and test it against a realistic backfill and a populated-collection index build; in parallel, compare against doctrine/mongodb-odm migrations (if we already have Doctrine in play) and Mongock. Decision criteria: rollback semantics, idempotency on re-run, CI integration, and whether the maintainer is responsive. If we can't clear those, we write a thin in-house command and move on.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console