PHPackages                             andydune/mongo-odm - 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. andydune/mongo-odm

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

andydune/mongo-odm
==================

AObject Document mapper for mongoDB with no proxies, special configuration.

v1.3.3(7y ago)03311MITPHPPHP &gt;=7.1CI failing

Since Apr 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AndyDune/MongoOdm)[ Packagist](https://packagist.org/packages/andydune/mongo-odm)[ Docs](https://github.com/AndyDune/MongoOdm)[ RSS](/packages/andydune-mongo-odm/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (6)Versions (9)Used By (1)

MongoOdm
========

[](#mongoodm)

[![Build Status](https://camo.githubusercontent.com/420a645c2d7675cffe90feaa6f071f2314d9c56307ecfff29fb6c35e3bd5d1b9/68747470733a2f2f7472617669732d63692e6f72672f416e647944756e652f4d6f6e676f4f646d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AndyDune/MongoOdm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/ba069faf6ad32428daa4b5570905fb81b32a2fc0eadf5be83cf8092909bc18b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647964756e652f6d6f6e676f2d6f646d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andydune/mongo-odm)[![Total Downloads](https://camo.githubusercontent.com/8ed1ddd7c1a2f7dcadd91793186318ab69add10062bb1f698a7d0b7269c119f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647964756e652f6d6f6e676f2d6f646d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andydune/mongo-odm)

Object Document mapper for mongoDB with no proxies, special configuration.

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

[](#installation)

Installation using composer:

```
composer require andydune/mongo-odm

```

Or if composer was not installed globally:

```
php composer.phar require andydune/mongo-odm

```

Or edit your `composer.json`:

```
"require" : {
     "andydune/mongo-odm": "^1"
}

```

And execute command:

```
php composer.phar update

```

Control types
=============

[](#control-types)

```
 $mongo = new \MongoDB\Client();
        $collection = $mongo->selectDatabase('test')->selectCollection('test_odm');
        $collection->deleteMany([]);

        $odmClass = new class($collection) extends DocumentAbstract
        {
            protected function describe()
            {
                $this->fieldsMap['number'] = 'integer';
                $this->fieldsMap['code'] = 'string';
                $this->fieldsMap['birthday'] = 'datetime';
            }
        };

        $time = time();
        $odmClass->number = '12';
        $odmClass->code = '125';
        $odmClass->birthday = date('Y-m-d H:i:s', $time);
        $odmClass->save();

        $res = $collection->findOne(['number' => 12]);
        $this->assertTrue((bool)$res);
        $res = $collection->findOne(['number' => '12']);
        $this->assertFalse((bool)$res);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~6 days

Total

8

Last Release

2917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79da3b2173a2cefb36abc9b4707cf2c633df8f2c748633ccf64186f5c0e7be6c?d=identicon)[AndyDune](/maintainers/AndyDune)

---

Top Contributors

[![AndyDune](https://avatars.githubusercontent.com/u/3772910?v=4)](https://github.com/AndyDune "AndyDune (21 commits)")

---

Tags

mongodbodmphp7phpodmmongo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andydune-mongo-odm/health.svg)

```
[![Health](https://phpackages.com/badges/andydune-mongo-odm/health.svg)](https://phpackages.com/packages/andydune-mongo-odm)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M302](/packages/doctrine-mongodb-odm)[denchikby/phalcon-mongodb-odm

Phalcon MongoDB ODM

4212.8k](/packages/denchikby-phalcon-mongodb-odm)[leroy-merlin-br/mongolid

Easy, powerful and ultrafast ODM for PHP and MongoDB.

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

Paradox is an elegant Object Document Mananger (ODM) to use with the ArangoDB Document/Graph database server.

256.8k](/packages/f21-paradox)

PHPackages © 2026

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