yiisoft/db-sphinx


CA CE CIS DIT
    yii\sphinx\ActiveDataProvider 0 3 5 2
    yii\sphinx\ActiveFixture 0 5 6 2
    yii\sphinx\ActiveQuery 3 6 8 3
    yii\sphinx\ActiveRecord 7 11 21 2
    yii\sphinx\ColumnSchema 2 2 10 2
    yii\sphinx\Command 3 6 28 2
    yii\sphinx\Connection 9 2 8 2
    yii\sphinx\IndexSchema 1 1 9 2
    yii\sphinx\MatchBuilder 2 4 11 2
    yii\sphinx\MatchExpression 1 2 11 2
    yii\sphinx\Query 4 11 31 2
    yii\sphinx\QueryBuilder 2 14 35 2
    yii\sphinx\Schema 4 12 18 2
    Yiisoft\Db\Sphinx\ActiveDataProvider 0 3 5 2
    Yiisoft\Db\Sphinx\ActiveFixture 0 5 6 2
    Yiisoft\Db\Sphinx\ActiveQuery 3 6 8 3
    Yiisoft\Db\Sphinx\ActiveRecord 7 11 21 2
    Yiisoft\Db\Sphinx\ColumnSchema 2 2 10 2
    Yiisoft\Db\Sphinx\Command 3 6 28 2
    Yiisoft\Db\Sphinx\Connection 9 2 8 2
    Yiisoft\Db\Sphinx\IndexSchema 1 1 9 2
    Yiisoft\Db\Sphinx\MatchBuilder 2 4 11 2
    Yiisoft\Db\Sphinx\MatchExpression 1 2 11 2
    Yiisoft\Db\Sphinx\Query 4 11 31 2
    Yiisoft\Db\Sphinx\QueryBuilder 2 14 35 2
    Yiisoft\Db\Sphinx\Schema 4 12 18 2
    Yiisoft\Db\Sphinx\Gii\Model\Generator 0 6 22 2
    Yiisoft\Db\Sphinx\Gii\Model\Generator 0 6 22 2
    yii\sphinx\gii\model\Generator 0 6 22 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-sphinx",
    "description": "Yii Framework Sphinx full text search engine extension",
    "keywords": ["yii", "sphinx", "active-record", "search", "fulltext"],
    "type": "library",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/db-sphinx/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-sphinx"
    },
    "authors": [
        {
            "name": "Paul Klimov",
            "email": "klimov.paul@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "require": {
        "yiisoft/yii-core": "^3.0@dev",
        "yiisoft/db": "^3.0@dev",
        "yiisoft/strings": "^3.0@dev",
        "ext-pdo": "*",
        "ext-pdo_mysql": "*",
        "yiisoft/active-record": "^3.0@dev"
    },
    "require-dev": {
        "phpunit/phpunit": "^7.3",
        "yiisoft/yii-web": "^3.0@dev",
        "yiisoft/di": "dev-master",
        "yiisoft/arrays": "^3.0@dev",
        "yiisoft/db-mysql": "dev-master",
        "yiisoft/yii-console": "dev-master",
        "yiisoft/log": "dev-master",
        "yiisoft/cache": "dev-master",
        "hiqdev/composer-config-plugin": "^1.0@dev"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],
    "autoload": {
        "psr-4": { "Yiisoft\\Db\\Sphinx\\": "src" }
    },
    "autoload-dev": {
        "psr-4": { "Yiisoft\\Db\\Sphinx\\Tests\\": "tests/" }
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        },
        "config-plugin": {
            "params": "config/params.php",
            "common": "config/common.php",
            "tests": "config/tests.php"
        }
    }
}
yiisoft/db-sphinx dependencies

Yii Framework Sphinx full text search engine extension


This extension adds Sphinx full text search engine extension for the Yii framework. It supports all Sphinx features including Real-time Indexes.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version Total Downloads Build Status

Requirements

At least Sphinx version 2.0 is required. However, in order to use all extension features, Sphinx version 2.2.3 or higher is required.

Installation

The preferred way to install this extension is through composer.

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

Configuration

This extension interacts with Sphinx search daemon using MySQL protocol and SphinxQL query language. In order to setup Sphinx "searchd" to support MySQL protocol following configuration should be added:

searchd
{
    listen = localhost:9306:mysql41
    ...
}

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

return [
    //....
    'components' => [
        'sphinx' => [
            'class' => Yiisoft\Db\Sphinx\Connection::class,
            'dsn' => 'mysql:host=127.0.0.1;port=9306;',
            'username' => '',
            'password' => '',
        ],
    ],
];