yii2-sphinx

Yii 2 Sphinx extension.

  • Owner: yiisoft/yii2-sphinx
  • Platform:
  • License:: BSD 3-Clause "New" or "Revised" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

This extension adds Sphinx full text search engine extension for the Yii framework 2.0.
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.

Either run

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

or add

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

to the require section of your composer.json.

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' => 'yii\sphinx\Connection',
            'dsn' => 'mysql:host=127.0.0.1;port=9306;',
            'username' => '',
            'password' => '',
        ],
    ],
];

Overview

Name With Owneryiisoft/yii2-sphinx
Primary LanguagePHP
Program languagePHP (Language Count: 2)
Platform
License:BSD 3-Clause "New" or "Revised" License
Release Count20
Last Release Name2.0.16 (Posted on 2024-03-21 21:21:04)
First Release Name2.0.0-alpha (Posted on )
Created At2013-11-24 22:45:37
Pushed At2024-03-21 18:21:22
Last Commit At2024-03-21 21:21:18
Stargazers Count183
Watchers Count33
Fork Count72
Commits Count4.9k
Has Issues Enabled
Issues Count86
Issue Open Count3
Pull Requests Count39
Pull Requests Open Count1
Pull Requests Close Count18
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top