yiisoft/db-mongodb


CA CE CIS DIT
    yii\mongodb\ActiveFixture 0 4 4 2
    yii\mongodb\ActiveQuery 4 4 8 3
    yii\mongodb\ActiveRecord 4 14 13 2
    yii\mongodb\BatchQueryResult 1 5 10 2
    yii\mongodb\Cache 0 5 7 2
    yii\mongodb\Collection 14 5 23 2
    yii\mongodb\Command 2 16 35 2
    yii\mongodb\Connection 17 14 23 2
    yii\mongodb\Database 3 7 9 2
    yii\mongodb\Exception 5 0 1 2
    yii\mongodb\LogBuilder 1 10 2 2
    yii\mongodb\Migration 1 4 15 2
    yii\mongodb\Query 6 9 26 2
    yii\mongodb\QueryBuilder 1 6 30 2
    yii\mongodb\Session 0 5 8 2
    Yiisoft\Db\MongoDb\ActiveFixture 0 4 4 2
    Yiisoft\Db\MongoDb\ActiveQuery 4 4 8 3
    Yiisoft\Db\MongoDb\ActiveRecord 4 14 13 2
    Yiisoft\Db\MongoDb\BatchQueryResult 1 5 10 2
    Yiisoft\Db\MongoDb\Cache 0 5 7 2
    Yiisoft\Db\MongoDb\Collection 14 5 23 2
    Yiisoft\Db\MongoDb\Command 2 16 35 2
    Yiisoft\Db\MongoDb\Connection 17 14 23 2
    Yiisoft\Db\MongoDb\Database 3 7 9 2
    Yiisoft\Db\MongoDb\Exception 5 0 1 2
    Yiisoft\Db\MongoDb\LogBuilder 1 10 2 2
    Yiisoft\Db\MongoDb\Migration 1 4 15 2
    Yiisoft\Db\MongoDb\Query 6 9 26 2
    Yiisoft\Db\MongoDb\QueryBuilder 1 6 30 2
    Yiisoft\Db\MongoDb\Session 0 5 8 2
    yii\mongodb\console\controllers\MigrateController 1 7 5 2
    Yiisoft\Db\MongoDb\Console\Controllers\MigrateController 1 7 5 2
    yii\mongodb\debug\ExplainAction 1 5 2 2
    yii\mongodb\debug\MongoDbPanel 1 4 7 2
    Yiisoft\Db\MongoDb\Debug\ExplainAction 1 5 2 2
    Yiisoft\Db\MongoDb\Debug\MongoDbPanel 1 4 7 2
    yii\mongodb\file\ActiveQuery 2 5 7 4
    yii\mongodb\file\ActiveRecord 1 10 7 3
    yii\mongodb\file\Collection 1 8 16 3
    yii\mongodb\file\Cursor 1 2 12 2
    yii\mongodb\file\Download 3 9 15 2
    yii\mongodb\file\Query 1 2 1 3
    yii\mongodb\file\StreamWrapper 1 8 12 2
    yii\mongodb\file\Upload 2 7 13 2
    Yiisoft\Db\MongoDb\File\ActiveQuery 2 5 7 4
    Yiisoft\Db\MongoDb\File\ActiveRecord 1 10 7 3
    Yiisoft\Db\MongoDb\File\Collection 1 8 16 3
    Yiisoft\Db\MongoDb\File\Cursor 1 2 12 2
    Yiisoft\Db\MongoDb\File\Download 3 9 15 2
    Yiisoft\Db\MongoDb\File\Query 1 2 1 3
    Yiisoft\Db\MongoDb\File\StreamWrapper 1 8 12 2
    Yiisoft\Db\MongoDb\File\Upload 2 7 13 2
    yii\mongodb\gii\model\Generator 0 6 22 2
    Yiisoft\Db\MongoDb\Gii\Model\Generator 0 6 22 2
    yii\mongodb\i18n\MongoDbMessageSource 0 5 6 2
    Yiisoft\Db\MongoDb\i18n\MongoDbMessageSource 0 5 6 2
    yii\mongodb\log\MongoDbTarget 0 6 4 2
    Yiisoft\Db\MongoDb\Log\MongoDbTarget 0 6 4 2
    yii\mongodb\rbac\MongoDbManager 0 13 33 2
    yii\mongodb\rbac\Permission 1 0 1 2
    yii\mongodb\rbac\Role 1 0 1 2
    Yiisoft\Db\MongoDb\Rbac\MongoDbManager 0 13 33 2
    Yiisoft\Db\MongoDb\Rbac\Permission 1 0 1 2
    Yiisoft\Db\MongoDb\Rbac\Role 1 0 1 2
    yii\mongodb\validators\MongoDateValidator 0 1 2 2
    yii\mongodb\validators\MongoIdValidator 0 4 3 2
    Yiisoft\Db\MongoDb\Gii\Validators\MongoDateValidator 0 1 2 2
    Yiisoft\Db\MongoDb\Gii\Validators\MongoIdValidator 0 4 3 2
CA (Afferent Coupling)
Number of unique incoming dependencies from other artifacts of the same type.
CE (Efferent Coupling)
Number of unique outgoing dependencies to other artifacts of the same type.
CID (Class Interface Size)
Number of non private methods and properties of a class: CIS = public(NOM + VARS)
Measures the size of the interface from other parts of the system to a class.
Depth of Inheritance Tree
Depth of inheritance to root class
{
    "name": "yiisoft/db-mongodb",
    "description": "Yii Framework MongoDB extension",
    "keywords": ["yii", "mongo", "mongodb", "active-record", "gridfs"],
    "type": "library",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/db-mongodb/issues",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/db-mongodb"
    },
    "authors": [
        {
            "name": "Paul Klimov",
            "email": "klimov.paul@gmail.com"
        }
    ],
    "require": {
        "yiisoft/yii-core": "^3.0@dev",
        "ext-mongodb": ">=1.0.0"
    },
    "require-dev": {
        "yiisoft/arrays": "^3.0@dev",
        "yiisoft/strings": "^3.0@dev",
        "phpunit/phpunit": "^7.3",
        "yiisoft/di": "dev-master",
        "yiisoft/log": "dev-master",
        "yiisoft/cache": "dev-master"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],
    "autoload": {
        "psr-4": {"Yiisoft\\Db\\MongoDb\\": "src"}
    },
    "autoload-dev": {
        "psr-4": {"Yiisoft\\Db\\MongoDb\\Tests\\": "tests"}
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        }
    }
}
yiisoft/db-mongodb dependencies

Yii Framework MongoDB extension


This extension provides the MongoDB integration for the Yii framework.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version Total Downloads Build Status

Installation

This extension requires MongoDB PHP Extension version 1.0.0 or higher.

This extension requires MongoDB server version 3.0 or higher.

The preferred way to install this extension is through composer.

composer require --prefer-dist yiisoft/db-mongodb

Configuration

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'mongodb' => [
            '__class' => Yiisoft\Db\MongoDb\Connection::class,
            'dsn' => 'mongodb://@localhost:27017/mydatabase',
            'options' => [
                "username" => "Username",
                "password" => "Password"
            ]
        ],
    ],
];