doesntmattr/mongodb-migrations-bundle
Symfony bundle that integrates the doesntmattr MongoDB Migrations library, providing configuration and tooling to run MongoDB schema/data migrations in Symfony apps. Supports PHP 5.6 via v1.x and PHP 7.1+ via v3.x.
Adopt When:
mongo shell commands).migration_versions collection).Look Elsewhere If:
spatie/laravel-mongodb) may offer tighter integration.update commands or tools like MongoDB Compass.doesntmattr/mongodb-migrations lacks Symfony’s DI benefits.mongodb-migrations for Node)."This package lets us treat MongoDB schema changes like Git commits—versioned, reproducible, and auditable. For teams managing complex data models (e.g., [Product X]’s user profiles or [Feature Y]’s analytics pipelines), it eliminates ‘works on my machine’ database drifts during deployments. By integrating with our existing Symfony stack, we avoid reinventing migration logic, reducing dev ops overhead by ~30% (based on similar SQL migration tools). The MIT license and active community (despite recent inactivity) make it a low-risk choice for our tech debt reduction roadmap."
Key Outcomes:
*"This bundle wraps mongodb-migrations to work seamlessly with Symfony’s DI container, giving us:
./console mongodb:migrations:migrate—no manual script management../console mongodb:migrations:version --delete).Trade-offs:
Proposed Rollout:
up()/down() patterns).Alternatives Considered:
How can I help you explore Laravel packages today?