Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Laravel MongoDB Package
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
examples
.gitignore
model.php
mongodb.php
readme.md

readme.md

Mongor - MongoDB Package for Laravel

For more information on Laravel, visit http://laravel.com

Inspired by https://github.com/Wouterrr/MangoDB

How to use

  • Move config/mongor.php to /application/config and edit credentials.
  • Create a model that extends Mongor\Model.
  • Each model is attached to a collection in the database
  • Create a variable protected $_collection = 'user'; where user is the collection name
  • Use CRUD methods found in Mongor\Model or call the MongoDB instance $_db for more methods
  • Refer to examples
  • Refer to http://www.mongodb.org/display/DOCS/Home for more MongoDB useage
Something went wrong with that request. Please try again.