PHPackages                             brebvix/yii2mongo - 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. [Database &amp; ORM](/categories/database)
4. /
5. brebvix/yii2mongo

ActiveLibrary[Database &amp; ORM](/categories/database)

brebvix/yii2mongo
=================

An extension for using the MongoDB library in a style similar to ActiveRecord.

02.5kPHP

Since Dec 19Pushed 6y agoCompare

[ Source](https://github.com/brebvix/yii2mongo)[ Packagist](https://packagist.org/packages/brebvix/yii2mongo)[ RSS](/packages/brebvix-yii2mongo/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 MongoDB
============

[](#yii2-mongodb)

An extension for using the MongoDB library in a style similar to ActiveRecord.

Installation
------------

[](#installation)

```
composer require brebvix/yii2mongo

```

#### Add to the configuration file *params-local.php*:

[](#add-to-the-configuration-file-params-localphp)

```
'mongo' => [
    'connectionUrl' => 'mongodb://:@:',
    'databaseName' => '',
],
```

Documentation:

Example
-------

[](#example)

### Model class

[](#model-class)

```
