PHPackages                             mongodb/laravel-mongodb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mongodb/laravel-mongodb

ActiveLibrary[Database &amp; ORM](/categories/database)

mongodb/laravel-mongodb
=======================

A MongoDB based Eloquent model and Query builder for Laravel

5.7.0(2mo ago)7.1k7.2M↓11.5%1.4k[122 issues](https://github.com/mongodb/laravel-mongodb/issues)[16 PRs](https://github.com/mongodb/laravel-mongodb/pulls)20MITPHPPHP ^8.1CI passing

Since Aug 18Pushed 1mo ago169 watchersCompare

[ Source](https://github.com/mongodb/laravel-mongodb)[ Packagist](https://packagist.org/packages/mongodb/laravel-mongodb)[ Docs](https://github.com/mongodb/laravel-mongodb)[ RSS](/packages/mongodb-laravel-mongodb/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (34)Versions (202)Used By (20)

Laravel MongoDB
===============

[](#laravel-mongodb)

[![Latest Stable Version](https://camo.githubusercontent.com/2970b195852b7b36dece26ee83baebfbab68635d618148d8aac5fd1318725ba6/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d6f6e676f64622f6c61726176656c2d6d6f6e676f64622e737667)](https://packagist.org/packages/mongodb/laravel-mongodb)[![Total Downloads](https://camo.githubusercontent.com/28b322696b80364b00946db4cfac45d138f23a4647fb012b6b3bd1ce2ff7d159/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d6f6e676f64622f6c61726176656c2d6d6f6e676f64622e737667)](https://packagist.org/packages/mongodb/laravel-mongodb)[![Build Status](https://camo.githubusercontent.com/e1d1e7b873831f0101fdd65ab234d82dc92f2275706b620f3689f456fb2931c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6e676f64622f6c61726176656c2d6d6f6e676f64622f6275696c642d63692e796d6c)](https://github.com/mongodb/laravel-mongodb/actions/workflows/build-ci.yml)

This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*

This package was renamed to `mongodb/laravel-mongodb` because of a transfer of ownership to MongoDB, Inc. It is compatible with Laravel 10.x. For older versions of Laravel, please refer to the [old versions](https://github.com/mongodb/laravel-mongodb/tree/3.9#laravel-version-compatibility).

Documentation
-------------

[](#documentation)

-
-

Release Integrity
-----------------

[](#release-integrity)

Releases are created automatically and the resulting release tag is signed using the [PHP team's GPG key](https://pgp.mongodb.com/php-driver.asc). To verify the tag signature, download the key and import it using `gpg`:

```
gpg --import php-driver.asc
```

Then, in a local clone, verify the signature of a given tag (e.g. `4.4.0`):

```
git show --show-signature 4.4.0
```

Note

Composer does not support verifying signatures as part of its installation process.

Reporting Issues
----------------

[](#reporting-issues)

Think you’ve found a bug in the library? Want to see a new feature? Please open a case in our issue management tool, JIRA:

- [Create an account and login.](https://jira.mongodb.org/)
- Navigate to the [PHPORM](https://jira.mongodb.org/browse/PHPORM) project.
- Click Create - Please provide as much information as possible about the issue type and how to reproduce it.

Note: All reported issues in JIRA project are public.

For general questions and support requests, please use one of MongoDB's [Technical Support](https://mongodb.com/docs/manual/support/) channels.

### Security Vulnerabilities

[](#security-vulnerabilities)

If you've identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in [Create a Vulnerability Report](https://mongodb.com/docs/manual/tutorial/create-a-vulnerability-report).

Development
-----------

[](#development)

Development is tracked in the [PHPORM](https://jira.mongodb.org/projects/PHPORM/summary) project in MongoDB's JIRA. Documentation for contributing to this project may be found in [CONTRIBUTING.md](CONTRIBUTING.md).

###  Health Score

82

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community57

Growing community involvement

Maturity91

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~9 days

Total

193

Last Release

60d ago

Major Versions

4.7.x-dev → 5.0.0-rc12024-09-06

4.8.1 → 5.1.12025-01-06

4.8.x-dev → 5.0.x-dev2025-02-06

4.9.0 → 5.3.12025-04-15

4.9.x-dev → 5.4.22025-07-21

PHP version history (4 changes)v1.0.0PHP &gt;=5.3.0

v1.4.0PHP &gt;=5.4.0

v4.0.0-ALPHA2PHP ^8.1

5.0.0-rc1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/400034?v=4)[Jérôme Tamarelle](/maintainers/GromNaN)[@GromNaN](https://github.com/GromNaN)

![](https://avatars.githubusercontent.com/u/383198?v=4)[Andreas Braun](/maintainers/alcaeus)[@alcaeus](https://github.com/alcaeus)

![](https://avatars.githubusercontent.com/u/555869?v=4)[Alexander Vos](/maintainers/vos)[@vos](https://github.com/vos)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (673 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (226 commits)")[![mongodb-php-bot](https://avatars.githubusercontent.com/u/162451593?v=4)](https://github.com/mongodb-php-bot "mongodb-php-bot (179 commits)")[![Smolevich](https://avatars.githubusercontent.com/u/7188867?v=4)](https://github.com/Smolevich "Smolevich (116 commits)")[![divine](https://avatars.githubusercontent.com/u/48183131?v=4)](https://github.com/divine "divine (109 commits)")[![rustagir](https://avatars.githubusercontent.com/u/85902999?v=4)](https://github.com/rustagir "rustagir (65 commits)")[![norareidy](https://avatars.githubusercontent.com/u/107268623?v=4)](https://github.com/norareidy "norareidy (50 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (49 commits)")[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (27 commits)")[![thilanga](https://avatars.githubusercontent.com/u/1523586?v=4)](https://github.com/thilanga "thilanga (25 commits)")[![pi0](https://avatars.githubusercontent.com/u/5158436?v=4)](https://github.com/pi0 "pi0 (24 commits)")[![duxet](https://avatars.githubusercontent.com/u/821707?v=4)](https://github.com/duxet "duxet (20 commits)")[![RemiCollin](https://avatars.githubusercontent.com/u/9589616?v=4)](https://github.com/RemiCollin "RemiCollin (17 commits)")[![denissonleal](https://avatars.githubusercontent.com/u/9142644?v=4)](https://github.com/denissonleal "denissonleal (16 commits)")[![hans-thomas](https://avatars.githubusercontent.com/u/39920372?v=4)](https://github.com/hans-thomas "hans-thomas (16 commits)")[![paulinevos](https://avatars.githubusercontent.com/u/5345273?v=4)](https://github.com/paulinevos "paulinevos (15 commits)")[![alexandre-butynski](https://avatars.githubusercontent.com/u/671662?v=4)](https://github.com/alexandre-butynski "alexandre-butynski (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (14 commits)")[![stephandesouza](https://avatars.githubusercontent.com/u/159077?v=4)](https://github.com/stephandesouza "stephandesouza (8 commits)")[![Tucker-Eric](https://avatars.githubusercontent.com/u/6483755?v=4)](https://github.com/Tucker-Eric "Tucker-Eric (7 commits)")

---

Tags

eloquentlaravellaravel-frameworkmoloquentmongomongodbormphplaraveldatabasemodeleloquentmongodbmongo

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mongodb-laravel-mongodb/health.svg)

```
[![Health](https://phpackages.com/badges/mongodb-laravel-mongodb/health.svg)](https://phpackages.com/packages/mongodb-laravel-mongodb)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
