leroy-merlin-br/mongolid

Easy, powerful and ultrafast ODM for PHP and MongoDB.
36,101 111
Install
composer require leroy-merlin-br/mongolid
Latest Version:v4.1.0
PHP:^8.2
License:MIT
Last Updated:Jul 8, 2026
Links: GitHub  ·  Packagist
Maintainer: diegofelix

Mongolid

Continuous Integration

About Mongolid

Easy, powerful and ultrafast ODM for PHP 8.2+ built on top of the MongoDB PHP 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: This repository contains the core ODM package. If you are working with Laravel, take a look at the mongolid-laravel repository for framework integration.

Requirements

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.

Related Packages

leroy-merlin-br/mongolid-laravel

Easy, powerful and ultrafast MongoDB ODM for Laravel.

28,491 237
chefsplate/laravel-doctrine-odm

A smart, lightweight Laravel wrapper around Doctrine's mongodb-odm Document Mapp...

54 9
mawelous/yamop-laravel

Yet another MongoDB ODM for PHP as Laravel Component. Nothing unnecessary, with...

156 8
kodeine/sentry-mongodb

A MongoDb implementation for Sentry 2.

8 2
suren/laravel-mongo-model-schema

Make mongo data saving and retrieving match defined schemas for Laravel. Support...

2,450 7