PHPackages                             adamlc/laravel-mandango - 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. adamlc/laravel-mandango

ActiveLibrary

adamlc/laravel-mandango
=======================

This small package will allow you to use the Mandango ODM in your Laravel application.

2292PHP

Since Aug 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/adamlc/laravel-mandango)[ Packagist](https://packagist.org/packages/adamlc/laravel-mandango)[ RSS](/packages/adamlc-laravel-mandango/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Mandango
================

[](#laravel-mandango)

This small package will allow you to use the Mandango ODM in your Laravel application.

This package has been thrown together quite quickly. I will update it when I have time!

Composer
--------

[](#composer)

To install Laravel Mandango as a Composer package to be used with Laravel 4, add this to your composer.json:

```
"adamlc/laravel-mandango": "dev-master"
```

Run `composer update`.

Once it's installed, you can register the service provider and facade in `app/config/app.php`:

```
'providers' => array(
    'Adamlc\LaravelMandango\LaravelMandangoServiceProvider',
)
```

```
'aliases' => array(
	'Mandango' => 'Adamlc\LaravelMandango\LaravelMandangoFacade'
)
```

Then publish the config file with `php artisan config:publish adamlc/laravel-mandango`. This will add the file `app/config/packages/adamlc/laravel-mandango/mandango.php`.

Configuration
-------------

[](#configuration)

In the configuration file you will need to configure you MongoDB connection and setup your [Mondator schema](http://mandango.org/doc/mandango/mondator.html) which will be used for automatic class generation.

Mondator Class Generation
-------------------------

[](#mondator-class-generation)

Once you have configured your schema as per the documentation you need to run thr artisan command to generate the classes, make sure you run `composer dump-autoload` followed by `php artisan mondator:run`

When Mandator has generated your classes you need to tell composer how to auto load them. Add the following to your composer.json under classmap:

```
"classmap": [
	"app/mandango"
],
```

After that make sure you do another `composer dump-autoload`

Usage
-----

[](#usage)

Once the above steps have been completed you can simply get your repository by calling like this:

```
$articleRepository = Mandango::getRepository('Model\Article');
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a926c50a230fd43c45b3d415163068a45f8569e07668b8a722f8ce71c0f2b3e8?d=identicon)[adamlc](/maintainers/adamlc)

---

Top Contributors

[![adamlc](https://avatars.githubusercontent.com/u/809944?v=4)](https://github.com/adamlc "adamlc (6 commits)")

### Embed Badge

![Health badge](/badges/adamlc-laravel-mandango/health.svg)

```
[![Health](https://phpackages.com/badges/adamlc-laravel-mandango/health.svg)](https://phpackages.com/packages/adamlc-laravel-mandango)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
