Skip to content


Subversion checkout URL

You can clone with
Download ZIP
MongoDB for KO 3.2 (for 3.1 and 3.0 check branches)
Latest commit afd7c9a @Wouterrr Additional check
Failed to load latest commit information.
classes Additional check
config Support for most recent MongoDB PHP Driver
composer.json Composer.json updates Update

MongoDB for Kohana 3.3


Mango is an ORM/ActiveRecord like library that takes full advantage of MongoDB's features. Mango supports:

  • Atomic updates - the library will calculate what values changed, and will update only those values using atomic modifiers like $set, $push/$pull and $inc
  • All Mongo datatypes including embedded objects, arrays, enums and (multidimensional) counters
  • Relationships you remember from the RDBMS world like has_one, belongs_to, has_many and has_and_belongs_to_many
  • Validation of object data, including embedded objects
  • Class Table Extension-like behavior - eg Model_Ferrari extends Model_Car extends Mango.
  • Very easy syntax very familiar to users of other ORMs


A simple wrapper to access MongoDB. Store your database info in a config file and access MongoDB from anywhere in your code using MangoDB::instance().


Want to implement a queue in MongoDB? Check MangoQueue: and


Use MongoDB for Kohana Log? Kohana Sessions? Scaffolding? or ACL assertions?



"THE BEER-WARE LICENSE" (Revision 42): Wouter Wiegmans wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return - Wouter Wiegmans

Something went wrong with that request. Please try again.