yiisoft/db-elasticsearch


CA CE CIS DIT
    yii\elasticsearch\ActiveDataProvider 0 5 4 2
    yii\elasticsearch\ActiveFixture 0 6 6 2
    yii\elasticsearch\ActiveQuery 2 5 8 3
    yii\elasticsearch\ActiveRecord 2 19 27 2
    yii\elasticsearch\BatchQueryResult 1 4 11 2
    yii\elasticsearch\BulkCommand 1 3 8 2
    yii\elasticsearch\Command 3 4 36 2
    yii\elasticsearch\Connection 9 10 23 2
    yii\elasticsearch\DebugAction 0 9 4 2
    yii\elasticsearch\DebugPanel 1 6 7 2
    yii\elasticsearch\ElasticsearchTarget 1 10 11 2
    yii\elasticsearch\Exception 5 0 1 2
    yii\elasticsearch\Query 4 7 48 2
    yii\elasticsearch\QueryBuilder 1 5 6 2
    Yiisoft\Db\ElasticSearch\ActiveDataProvider 0 5 4 2
    Yiisoft\Db\ElasticSearch\ActiveFixture 0 6 6 2
    Yiisoft\Db\ElasticSearch\ActiveQuery 2 5 8 3
    Yiisoft\Db\ElasticSearch\ActiveRecord 2 19 27 2
    Yiisoft\Db\ElasticSearch\BatchQueryResult 1 4 11 2
    Yiisoft\Db\ElasticSearch\BulkCommand 1 3 8 2
    Yiisoft\Db\ElasticSearch\Command 3 4 36 2
    Yiisoft\Db\ElasticSearch\Connection 9 10 23 2
    Yiisoft\Db\ElasticSearch\DebugAction 0 9 4 2
    Yiisoft\Db\ElasticSearch\DebugPanel 1 6 7 2
    Yiisoft\Db\ElasticSearch\ElasticsearchTarget 1 10 11 2
    Yiisoft\Db\ElasticSearch\Exception 5 0 1 2
    Yiisoft\Db\ElasticSearch\Query 4 7 48 2
    Yiisoft\Db\ElasticSearch\QueryBuilder 1 5 6 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-elasticsearch",
    "description": "Yii Framework Elasticsearch Query and ActiveRecord",
    "keywords": ["yii", "elasticsearch", "active-record", "search", "fulltext"],
    "type": "library",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii-elasticsearch/issues",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii-elasticsearch"
    },
    "authors": [
        {
            "name": "Carsten Brandt",
            "email": "mail@cebe.cc"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "yiisoft/arrays": "^3.0@dev",
        "yiisoft/di": "^3.0@dev",
        "yiisoft/strings": "^3.0@dev",
        "yiisoft/yii-core": "^3.0@dev",
        "ext-curl": "*"
    },
    "require-dev": {
        "yiisoft/log": "^3.0@dev",
        "yiisoft/cache": "^3.0@dev",
        "yiisoft/active-record": "^3.0@dev",
        "phpunit/phpunit": "^7.3",
        "hiqdev/composer-config-plugin": "^1.0@dev"
    },
    "autoload": {
        "psr-4": { "Yiisoft\\Db\\ElasticSearch\\": "src" }
    },
    "autoload-dev": {
        "psr-4": {"Yiisoft\\Db\\ElasticSearch\\Tests\\": "tests"}
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        }
    }
}
yiisoft/db-elasticsearch dependencies

Yii Framework Elasticsearch Query and ActiveRecord


This extension provides the elasticsearch integration for the Yii framework. It includes basic querying/search support and also implements the ActiveRecord pattern that allows you to store active records in elasticsearch.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version Total Downloads Build Status

Requirements

Extension requires at least elasticsearch version 5.0.

Installation

The preferred way to install this extension is through composer.

composer require --prefer-dist yiisoft/yii-elasticsearch

Configuration

To use this extension, you have to configure the Connection class in your application configuration:

return [
    //....
    'components' => [
        'elasticsearch' => [
            'class' => 'Yiisoft\Db\ElasticSearch\Connection',
            'nodes' => [
                ['http_address' => '127.0.0.1:9200'],
                // configure more hosts if you have a cluster
            ],
        ],
    ]
];