Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mongo ORM support for Laravel 3 bundle
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
README.md
bundle.php
hydrator.php
model.php
mongoauth.php
mongodb.php
mongoprofiler.php
start.php

README.md

Mongor ORM

Installation

Aritsan

php artisan bundle:install mongor

Bundle Registration

Add the following to your application/bundles.php file:

'mongor' => array('auto' => true),

Edit config/database.php with your database connection details.

Use

Models

To use a model you need to create a file in the models folder with the name of the class, just like Eloquent

class User extends Mongor\Model {}

Where User is the name (lower case) of the collection in MongoDB.

Auth

Using MongoDB for authentication is now very easy! Only change the driver in application/config/auth.php to mongo and set the corresponding model.

Copyright

This is a bundle based on mikelbring library, I only adapted it for use with Laravel 3 with models. It's very basic, so if you have any issues please fork or write an issue ticket.

Something went wrong with that request. Please try again.