schevgeny / sphinx
Yii2 sphinx api
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/schevgeny/sphinx
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2025-12-13 01:58:58 UTC
README
Yii2 sphinx api
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist schevgeny/sphinx "*"
or add
"schevgeny/sphinx": "*"
to the require section of your composer.json file.
Usage
Add component sphinx to config :
'components' => [ ... 'sphinx' => [ 'class' => 'schevgeny\sphinx\DGSphinxSearch', 'server' => 'SPHINX_SERVER_IP', 'port' => 3312, 'maxQueryTime' => 3000, 'enableProfiling'=>0, 'enableResultTrace'=>0, 'fieldWeights' => [ 'name' => 10000, 'keywords' => 100, ], ], ]