# mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

Repository: https://github.com/mongodb/laravel-mongodb
Canonical: https://ross.abutalabs.com/products/laravel-mongodb
Homepage: https://www.mongodb.com/docs/drivers/php/laravel-mongodb/
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, mongo, mongodb, eloquent, orm, moloquent, php, laravel-framework
Last push: 2026-08-26T13:06:42+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 4903, "days_push": 7, "days_rel": 36, "gap_med": 14.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7071, forks 1435 (observed 2026-08-28T04:09:55.690644+00:00)

## What it is
The official MongoDB integration for Laravel, extending Eloquent models and the Query Builder to work with MongoDB using the standard Laravel API. Formerly jenssegers/mongodb (Moloquent), it is now owned and maintained by MongoDB, Inc. and supports Laravel 10.x and later.

## Use cases
- use MongoDB with Laravel Eloquent models
- query MongoDB collections with Laravel query builder
- replace MySQL with MongoDB in a Laravel app
- use Laravel authentication and queues with MongoDB
- connect Laravel to MongoDB Atlas
- migrate from jenssegers/mongodb to the official package

## When to choose
- you're building a Laravel application backed by MongoDB
- you want Eloquent-style models and query builder syntax over MongoDB documents
- you need an officially supported, MongoDB-maintained Laravel integration

## When to avoid
- your project uses a framework other than Laravel
- you need relational features like SQL joins and foreign key constraints
- you're on an older Laravel version unsupported by recent package releases

## Facets
- artifact type: library
- maturity: stable
- function: orm, database-driver, database
- domain: databases, web-development, backend
- platform: php
- tags: mongodb, eloquent, query-builder, moloquent, laravel-package, official-driver, laravel

## Member repositories
- mongodb/laravel-mongodb (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.690644+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:13.074854+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/laravel-mongodb (fetched 2026-08-28T04:09:55.690644+00:00, sha 2596f3c84107)
  - homepage: https://www.mongodb.com/docs/drivers/php/laravel-mongodb/ (fetched 2026-08-29T08:36:11.113723+00:00, sha efad29720b56)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T08:36:11.124374+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T08:36:11.126004+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T08:36:11.127628+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T08:36:11.129418+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T08:36:11.131168+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T08:36:11.132620+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T08:36:11.134294+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
