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.
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.
Model, Builder, query grammar). Those are not stable public APIs; Laravel minor releases routinely break such overrides silently rather than loudly.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.Key questions to answer before any commitment.
composer.json constraint?ext-mongodb vs legacy ext-mongo)?jenssegers/mongodb at the fork point, and does it contain meaningful fixes or only namespace churn?Verdict: do not adopt greenfield. If the codebase already depends on it, treat it as a containment problem with a funded migration off it.
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:
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.
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.
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.
How can I help you explore Laravel packages today?