PHPackages                             99designs/moa - 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. 99designs/moa

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

99designs/moa
=============

The rightweight data mapper for mongoDB and PHP 5.3+

1.0.5(12y ago)49.5k[5 issues](https://github.com/99designs/moa/issues)1MITPHPPHP &gt;=5.3.2

Since Sep 26Pushed 12y ago28 watchersCompare

[ Source](https://github.com/99designs/moa)[ Packagist](https://packagist.org/packages/99designs/moa)[ RSS](/packages/99designs-moa/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (2)Versions (16)Used By (1)

Moa: the rightweight mongoDB ODM
--------------------------------

[](#moa-the-rightweight-mongodb-odm)

Moa is an Object - Document Mapper, built to persist business domain objects in mongoDB.

[![Build Status](https://camo.githubusercontent.com/38c1e58938975c15e1382b3a164454e89f6c3cb226405f147efcb632a55248f8/68747470733a2f2f7472617669732d63692e6f72672f393964657369676e732f6d6f612e706e67)](https://travis-ci.org/99designs/moa)

### Why?

[](#why)

- Does the bare minimum to be useful
- Mongo query methods are already pretty good, all that's missing is some validation and typed de/serialisation
- Built to integrate easily into existing applications
- Zero dependencies
- Well tested
- Easy to create custom types with de/serialisation behaviours and validation rules

### Installation

[](#installation)

- Install via composer: `composer require 99designs/moa`
- via github

### Getting Started

[](#getting-started)

In your app start up code, add something that looks like the following:

```
