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 Laravel Package

simexis/mongodb

MongoDB integration for Laravel applications, offering Eloquent-style models and query builder support so you can work with MongoDB collections using familiar Laravel conventions.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. simexis/mongodb is a fork of Moloquent (the jenssegers/laravel-mongodb lineage), providing an Eloquent-compatible model base class and query builder over the MongoDB PHP driver. It is only a fit if the application has already committed to MongoDB as a primary document store and the team specifically wants Eloquent ergonomics rather than a native ODM (Doctrine MongoDB ODM) or the vendor-backed mongodb/laravel-mongodb. The architectural tension is inherent to the pattern: Eloquent assumes schema-bound tables, auto-increment keys, joins, and migrations, none of which map cleanly onto a schemaless store. Adopting this package means inheriting those assumptions while losing the guardrails that make them safe in SQL.

Integration feasibility. Mechanically straightforward: composer require, register the service provider and facade alias, add a mongodb connection block to config/database.php, and have models extend the package's base model. The blocker is not effort, it is signal. Two stars and zero dependents means effectively no community validation, no downstream bug reports, and no evidence of production use at any scale. The 0.04 score is consistent with an abandoned or personal fork rather than a maintained dependency. A TPM should treat a package with this footprint as internal code we would be adopting, not as a third-party library.

Technical risk — high.

  • Supply chain: single-maintainer fork, no visible release cadence, no security advisory channel. Any vulnerability in the package or its transitive dependencies is ours to find and patch.
  • Framework coupling: the package overrides Eloquent internals (Model, Builder, query grammar). Those are not stable public APIs; Laravel minor releases routinely break such overrides silently rather than loudly.
  • Driver cliff: the MongoDB PHP driver transition (ext-mongo → ext-mongodb) invalidated most packages in this lineage. A fork of this vintage may still assume legacy APIs or pin an old driver.
  • Abandonment: with no upstream, Laravel/PHP version support stops at whatever the fork author last tested.

Key questions to answer before any commitment.

  1. Which Laravel and PHP versions are actually supported and tested — is there a CI matrix, or only a composer.json constraint?
  2. Which PHP extension and driver version does it require (ext-mongodb vs legacy ext-mongo)?
  3. What is the diff against upstream jenssegers/mongodb at the fork point, and does it contain meaningful fixes or only namespace churn?
  4. Is the license compatible with our distribution model, and are we permitted to vendor and patch it internally?
  5. Do we need transactions, aggregation pipelines, GridFS, or schema validation — and does this fork expose them?
  6. What is the exit cost if we adopt and later need to replace it?

Verdict: do not adopt greenfield. If the codebase already depends on it, treat it as a containment problem with a funded migration off it.

Integration Approach

Stack fit. Viable only for Laravel applications on a version the fork was tested against, with ext-mongodb installed and a MongoDB deployment (ideally a replica set, which transactions require). Beyond the model layer, check whether session, cache, and queue drivers are also pointed at MongoDB — that widens the blast radius of any driver-level issue considerably.

Migration path. This is a base-class and namespace replacement, not an additive integration. The target state should be mongodb/laravel-mongodb, maintained by MongoDB Inc., which is the current home of the Moloquent lineage. The mechanical move is Simexis\Mongodb\... → MongoDB\Laravel\... plus base-class swap. The real work is characterizing behavior first:

  • Write a characterization test suite around every model's queries, relationships, and raw aggregation calls before touching imports.
  • Diff the fork against upstream to see whether any local behavior depends on fork-specific patches. If it does, those patches must be reimplemented or upstreamed.
  • Inventory indirect dependencies on Eloquent's Builder type hints — third-party packages that type-hint the base builder will conflict.

Compatibility. Pin Laravel, PHP, and the driver extension explicitly in composer.json and commit the lock file. Avoid floating constraints on this dependency; a caret range on an unmaintained fork is an unowned upgrade. Verify no other package in the tree requires a conflicting Eloquent version.

Sequencing.

  1. Spike (timeboxed, one engineer, ~1 week): stand up the package in a branch, run the characterization suite, confirm the supported Laravel/PHP/driver triple. Output is a go/no-go on the fork itself.
  2. Decision gate: if the spike surfaces required patches, the recommendation shifts to "contain and replace" — do not invest in maintaining a fork with two stars.
  3. Swap: migrate imports and base classes to the official package behind the characterization suite.
  4. Dual-run: stage with production-shaped data; compare query behavior and result sets between old and new paths.
  5. Cut over with a rollback path and a documented window where both paths can be enabled.

Operational Impact

Maintenance. We own it. There is no upstream to absorb Laravel major-version churn, no security triage, no issue tracker worth watching. Every future Laravel upgrade becomes a manual compatibility project rather than a version bump. This is the single largest cost and it does not appear on any initial estimate.

Support. None — no vendor, no community, no SLA. On-call runbooks must cover driver-level failures (extension missing after a PHP upgrade, connection refused, replica set election) because no external party will diagnose them.

Scaling. MongoDB's own scaling model (replica sets, sharding, read preferences) is well understood and is not the risk. The risk is the Eloquent layer: document queries issued through an Eloquent-style builder can produce chatty access patterns and N+1s that are invisible in the SQL log a team is used to reading. Instrument at the driver level — command monitoring, slow-query logging — before load testing, not after.

Failure modes to plan for.

  • PHP upgrade removes or mismatches the driver extension; application fails at container boot.
  • Laravel minor upgrade breaks an overridden Eloquent internal; failures appear as wrong results, not exceptions.
  • Write concern defaults silently differ from expectations (acknowledged vs unacknowledged); data loss goes undetected until audit.
  • Connection pool exhaustion under php-fpm with default pool sizing.
  • No transactional guarantees unless a replica set and session support are explicitly wired.
  • Schema drift with no migrations to detect or reverse it — denormalization decisions in documents are effectively irreversible without a backfill.

Ramp-up. Engineers must hold two mental models simultaneously: Eloquent's relational assumptions and document modeling's denormalization trade-offs. That is weeks of ramp-up, not days, and the cost recurs with every new hire because the package has no documentation ecosystem to learn from. Budget for it explicitly, and treat the migration to the vendor-backed package as the cheaper path once that ramp-up cost is on the table.

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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
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
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core