dev-master
9999999-dev https://github.com/tatarko/MongoARWork with your MongoDB in the active record way
MIT
The Requires
- php >=5.4
- lib-mongo >=0.9
Work with your MongoDB in the active record way
MongoAR is simple library that allows you to use active record pattern on the MongoDB databases and their tables. It also provides simple yet powerful query builder for simple building of search criteria for MongoCollection::find()
and MongoCollection::findOne()
methods., (*1)
MongoAR requires to run correctly:, (*2)
PHP
, version 5.4
or abovemongo
pecl library, version 0.9
or aboveSimply add a dependency on tatarko/mongoar
to your project's composer.json
file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json
file that just defines a dependency on MongoAR:, (*3)
{ "require": { "tatarko/mongoar": "0.*" } }
In case you don't use Composer
as your dependency manager you are still able to use MongoAR
. There are only two easy steps to get MongoAR
work., (*4)
index.php
) and remember to change path/to/
according to relative location of downloaded MongoAR
folder:require_once 'path/to/source/__autoloader.php';
Please, see Wiki for online documentation., (*5)
Work with your MongoDB in the active record way
MIT