broutard/mongodb
A Laravel/PHP package that brings MongoDB into your applications, offering query building, model integration, and document handling so you can work with MongoDB collections using familiar Laravel-style syntax.
Important qualifier for the decision record: this specific package (broutard/mongodb) has 0 stars and 0 dependents — it is a low-signal fork of the long-established Moloquent lineage. The capability is worth evaluating; this distribution is not the one to standardize on. The maintained option is MongoDB's official mongodb/laravel-mongodb. Treat this repo as a reference implementation, not a dependency.
Adopt the pattern when:
Look elsewhere when:
mongodb/laravel-mongodb instead. Zero stars, zero dependents, and a single-fork maintenance model mean no security-patch cadence, no community triage, no upgrade guarantees across Laravel majors. That is a vendor-risk decision, not a code-quality one.For executives: "There's a well-established pattern for letting our Laravel app talk to MongoDB using the same model code we already write. It buys us speed on schema-fluid features — new content types and customer-specific fields without a database migration each time — and it keeps the door open to scale reads horizontally. Two caveats worth your attention: we should adopt the officially maintained MongoDB package rather than the specific fork on the table, which has no adoption or support base; and this is the right call only if our data is genuinely document-shaped rather than relational. My recommendation is a scoped spike, not a platform standard."
For engineering: "This is the Moloquent-style Eloquent adapter for MongoDB — models, relationships, casts, and a query builder over the document store, so there's no second mental model for the team. It supports embedded documents, aggregation pipeline, and geo queries, which is where it beats forcing this into SQL. Before you invest: confirm Laravel-version compatibility, diff it against mongodb/laravel-mongodb (the maintained upstream), and check the maintenance signal — this fork has no stars, no dependents, and no visible release cadence. Prototype on a non-critical bounded context — an activity log or a content catalog — and measure operational overhead (indexing, backup/restore, local dev parity) before we consider it for anything transactional."
Bottom line: Strong capability fit, weak distribution. Evaluate the pattern; standardize on the maintained upstream; gate adoption behind a two-to-four week spike on a low-blast-radius workload.
How can I help you explore Laravel packages today?