leroy-merlin-br/mongolid
Easy, powerful and ultrafast ODM for PHP and MongoDB.
34,336
110
| Install | |
|---|---|
composer require leroy-merlin-br/mongolid |
|
| Latest Version: | v3.8.1 |
| PHP: | ^8.1 |
| License: | MIT |
| Last Updated: | Feb 14, 2026 |
| Links: | GitHub · Packagist |
Maintainer: diegofelix

About Mongolid
Easy, powerful and ultrafast ODM for PHP 8.0+ build on top of the new mongodb driver.
Mongolid supports ActiveRecord pattern.
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.
Requirements
- PHP 8.0 or superior
- MongoDB Driver
Installation
You can install the library through Composer:
$ composer require leroy-merlin-br/mongolid
Documentation
You can access the full documentation here.
License
Mongolid is free software distributed under the terms of the MIT license.
Additional information
Made with ❤ by Leroy Merlin Brazil and all contributors.
If you have any questions, feel free to contact us.
If you have any issues, please report here.