PHPackages                             zizaco/mongolid - 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. zizaco/mongolid

Abandoned → [leroy-merlin-br/mongolid](/?search=leroy-merlin-br%2Fmongolid)Library[Database &amp; ORM](/categories/database)

zizaco/mongolid
===============

Easy, powerful and ultrafast ODM for PHP and MongoDB.

v3.8.1(7mo ago)11335.2k24[15 PRs](https://github.com/leroy-merlin-br/mongolid/pulls)1MITPHPPHP ^8.1CI passing

Since May 6Pushed 3mo ago24 watchersCompare

[ Source](https://github.com/leroy-merlin-br/mongolid)[ Packagist](https://packagist.org/packages/zizaco/mongolid)[ RSS](/packages/zizaco-mongolid/feed)WikiDiscussions v3.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (74)Used By (1)

[![Mongolid](https://user-images.githubusercontent.com/1991286/28967747-fe5c258a-78f2-11e7-91c7-8850ffb32004.png)](https://user-images.githubusercontent.com/1991286/28967747-fe5c258a-78f2-11e7-91c7-8850ffb32004.png)

[![Continuous Integration](https://github.com/leroy-merlin-br/mongolid/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/leroy-merlin-br/mongolid/actions/workflows/continuous-integration.yml)[![](https://camo.githubusercontent.com/a6c39d8c8f12fdf8b0859909e25469f3d9a21f07430b74fea0708d50bd7a5e0e/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6264646132643965613365393431343139343661663962616432646131613039)](https://www.codacy.com/gh/leroy-merlin-br/mongolid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=leroy-merlin-br/mongolid&utm_campaign=Badge_Grade)[![](https://camo.githubusercontent.com/eb701fb4535944e6b93c67ca46049311031229d624dff99148926354b6a01716/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f6264646132643965613365393431343139343661663962616432646131613039)](https://www.codacy.com/gh/leroy-merlin-br/mongolid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=leroy-merlin-br/mongolid&utm_campaign=Badge_Coverage)[![Latest Stable Version](https://camo.githubusercontent.com/6735b372b7e8ade8626300512f39eab73b290bc68cbf0697c20c04515da28854/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6d6f6e676f6c69642f762f737461626c65)](https://packagist.org/packages/leroy-merlin-br/mongolid)[![Total Downloads](https://camo.githubusercontent.com/a3a6acb2fb2fe7403914f44283e192e4dbbe84a5bc6f5d7e4620089d6c24d219/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6d6f6e676f6c69642f646f776e6c6f616473)](https://packagist.org/packages/leroy-merlin-br/mongolid)[![License](https://camo.githubusercontent.com/878b17f5905338855bb71e816881ec92c20d87abdf7f3a7582995e23540b739e/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6d6f6e676f6c69642f6c6963656e7365)](https://packagist.org/packages/leroy-merlin-br/mongolid)

About Mongolid
--------------

[](#about-mongolid)

Easy, powerful and ultrafast ODM for PHP 8.0+ build on top of the [new mongodb driver](https://docs.mongodb.org/ecosystem/drivers/php/).

Mongolid supports **ActiveRecord** pattern.

Introduction
------------

[](#introduction)

Mongolid ODM (Object Document Mapper) provides a beautiful, simple implementation for working with MongoDB. Each database collection can have a corresponding "Model" which is used to interact with that collection.

**Note:** If you are working with Laravel, take a look at [mongolid-laravel repository](https://github.com/leroy-merlin-br/mongolid-laravel).

Requirements
------------

[](#requirements)

- PHP **8.0** or superior
- [MongoDB Driver](http://php.net/manual/en/set.mongodb.php)

Installation
------------

[](#installation)

You can install the library through Composer:

```
$ composer require leroy-merlin-br/mongolid

```

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

[](#documentation)

You can access the full documentation [here](http://leroy-merlin-br.github.io/mongolid).

License
-------

[](#license)

Mongolid is free software distributed under the terms of the [MIT license](LICENSE).

Additional information
----------------------

[](#additional-information)

Made with ❤ by [Leroy Merlin Brazil](https://github.com/leroy-merlin-br) and [all contributors](https://github.com/leroy-merlin-br/mongolid/graphs/contributors).

If you have any questions, feel free to contact us.

If you have any issues, please [report here](https://github.com/leroy-merlin-br/mongolid/issues).

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance74

Regular maintenance activity

Popularity41

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor4

4 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 ~75 days

Recently: every ~191 days

Total

56

Last Release

229d ago

Major Versions

v0.8.1 → v2.0.0-beta2016-04-12

v2.4.0 → v4.0.0-beta2022-02-18

PHP version history (8 changes)v0.5.0PHP &gt;=5.3.0

v0.8.0PHP &gt;=5.4.0

v2.0.0-betaPHP &gt;=7.0

v2.3.0PHP &gt;=7.1

v4.0.0-betaPHP &gt;=7.3

v3.4PHP &gt;=7.4

v3.5PHP ^8.0

v3.8PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0300b524cec176bcf86cb356eab35fa035a74f5f0a651c362abf3d0e0b9e891?d=identicon)[Zizaco](/maintainers/Zizaco)

![](https://www.gravatar.com/avatar/7479d39c08e4ad65653355a32f925838a3daa896040a8a71d00148c4bb36722a?d=identicon)[GuilhermeGuitte](/maintainers/GuilhermeGuitte)

---

Top Contributors

[![Zizaco](https://avatars.githubusercontent.com/u/777635?v=4)](https://github.com/Zizaco "Zizaco (214 commits)")[![GuilhermeGuitte](https://avatars.githubusercontent.com/u/1062859?v=4)](https://github.com/GuilhermeGuitte "GuilhermeGuitte (74 commits)")[![gmsantos](https://avatars.githubusercontent.com/u/1991286?v=4)](https://github.com/gmsantos "gmsantos (74 commits)")[![ravanscafi](https://avatars.githubusercontent.com/u/6104262?v=4)](https://github.com/ravanscafi "ravanscafi (69 commits)")[![ezandonai](https://avatars.githubusercontent.com/u/14354251?v=4)](https://github.com/ezandonai "ezandonai (65 commits)")[![rplansky](https://avatars.githubusercontent.com/u/572653?v=4)](https://github.com/rplansky "rplansky (56 commits)")[![diegofelix](https://avatars.githubusercontent.com/u/238054?v=4)](https://github.com/diegofelix "diegofelix (46 commits)")[![djonasm](https://avatars.githubusercontent.com/u/1079090?v=4)](https://github.com/djonasm "djonasm (40 commits)")[![gabrielgomes94](https://avatars.githubusercontent.com/u/9309745?v=4)](https://github.com/gabrielgomes94 "gabrielgomes94 (29 commits)")[![vidalvasconcelos](https://avatars.githubusercontent.com/u/10285080?v=4)](https://github.com/vidalvasconcelos "vidalvasconcelos (19 commits)")[![orlandocavassani](https://avatars.githubusercontent.com/u/17056201?v=4)](https://github.com/orlandocavassani "orlandocavassani (16 commits)")[![JoaoFerrazfs](https://avatars.githubusercontent.com/u/50000291?v=4)](https://github.com/JoaoFerrazfs "JoaoFerrazfs (11 commits)")[![gemidio](https://avatars.githubusercontent.com/u/7032180?v=4)](https://github.com/gemidio "gemidio (10 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (8 commits)")[![ckd](https://avatars.githubusercontent.com/u/200629?v=4)](https://github.com/ckd "ckd (8 commits)")[![vitorbari](https://avatars.githubusercontent.com/u/1184252?v=4)](https://github.com/vitorbari "vitorbari (4 commits)")[![henrique221](https://avatars.githubusercontent.com/u/25698695?v=4)](https://github.com/henrique221 "henrique221 (3 commits)")[![DeiseCAPBarbosa](https://avatars.githubusercontent.com/u/133162100?v=4)](https://github.com/DeiseCAPBarbosa "DeiseCAPBarbosa (3 commits)")[![Vagnerlg](https://avatars.githubusercontent.com/u/10915227?v=4)](https://github.com/Vagnerlg "Vagnerlg (2 commits)")[![Manc](https://avatars.githubusercontent.com/u/811578?v=4)](https://github.com/Manc "Manc (1 commits)")

---

Tags

hacktoberfestmongodbodmphplaravelnosqlodmmongodbactive-recordmongo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zizaco-mongolid/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[leroy-merlin-br/mongolid

Easy, powerful and ultrafast ODM for PHP and MongoDB.

11234.3k4](/packages/leroy-merlin-br-mongolid)[leroy-merlin-br/mongolid-laravel

Easy, powerful and ultrafast MongoDB ODM for Laravel.

23827.8k2](/packages/leroy-merlin-br-mongolid-laravel)

PHPackages © 2026

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