2017 © Pedro Peláez
 

yii2-extension yii2-extended-mongodb

MongoDb extension for the Yii framework

image

aayaresko/yii2-extended-mongodb

MongoDb extension for the Yii framework

  • Thursday, April 14, 2016
  • by aayaresko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MongoDb Extension for Yii 2

This extension provides the MongoDB integration for the Yii framework 2.0., (*1)

For license information check the LICENSE-file., (*2)

Documentation is at docs/guide/README.md., (*3)

Latest Stable Version Total Downloads Build Status, (*4)

Installation

This extension requires MongoDB PHP Extension version 1.5.0 or higher., (*5)

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

php composer.phar require --prefer-dist yiisoft/yii2-mongodb

or add, (*8)

"yiisoft/yii2-mongodb": "~2.0.0"

to the require section of your composer.json., (*9)

Configuration

To use this extension, simply add the following code in your application configuration:, (*10)

return [
    //....
    'components' => [
        'mongodb' => [
            'class' => '\aayaresko\mongodb\Connection',
            'dsn' => 'mongodb://developer:password@localhost:27017/mydatabase',
        ],
    ],
];

Add into your configuration file, (*11)

    'modules' => [
        //....
        'gii-mongodb' => [
            'class' => 'aayaresko\gii\Module',
            'generators' => [
                'mongoDbModel' => [
                    'class' => 'aayaresko\mongodb\gii\model\Generator'
                ]
            ],
        ],
    ],
    'components' => [
        //....
        'mongodb' => [
            'class' => '\aayaresko\mongodb\Connection',
            'dsn' => 'mongodb://dbuser:dbpass@localhost:27017/dbname',
        ],
    ],

The Versions

14/04 2016

dev-master

9999999-dev

MongoDb extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrey Yaresko

mongodb yii2 mongo active-record