# db-sphinx **Repository Path**: mirrors_yiisoft/db-sphinx ## Basic Information - **Project Name**: db-sphinx - **Description**: Yii Framework Sphinx full text search engine extension - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > [!WARNING] > There is no official Sphinx support planned for Yii3 DB. Use either [MySQL driver](https://github.com/yiisoft/db-mysql) directly or any of the clients availabe.

Yii Framework Sphinx full text search engine extension


This extension adds [Sphinx](https://sphinxsearch.com/docs) full text search engine extension for the [Yii framework](https://www.yiiframework.com). It supports all Sphinx features including [Real-time Indexes](https://sphinxsearch.com/docs/current.html#rt-indexes). For license information check the [LICENSE](LICENSE.md)-file. Documentation is at [docs/guide/README.md](docs/guide/README.md). [![Latest Stable Version](https://poser.pugx.org/yiisoft/db-sphinx/v/stable.png)](https://packagist.org/packages/yiisoft/db-sphinx) [![Total Downloads](https://poser.pugx.org/yiisoft/db-sphinx/downloads.png)](https://packagist.org/packages/yiisoft/db-sphinx) [![Build Status](https://travis-ci.org/yiisoft/db-sphinx.svg?branch=master)](https://travis-ci.org/yiisoft/db-sphinx) 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](https://getcomposer.org/download/). ```shell composer require --prefer-dist yiisoft/db-sphinx ``` Configuration ------------- This extension interacts with Sphinx search daemon using MySQL protocol and [SphinxQL](https://sphinxsearch.com/docs/current.html#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: ```php return [ //.... 'components' => [ 'sphinx' => [ 'class' => Yiisoft\Db\Sphinx\Connection::class, 'dsn' => 'mysql:host=127.0.0.1;port=9306;', 'username' => '', 'password' => '', ], ], ]; ```