ripaclub / zf2-sphinxsearch
用于 Sphinx Search 库的 ZF2 模块
0.8.0
2015-06-22 18:15 UTC
Requires
- php: >=5.5
- ripaclub/sphinxsearch: ~0.8.0
Suggests
- ripaclub/zf2-sphinxsearch-tool: Utility that provides a set of tools to create and handle Sphinx Search configs and sources
This package is not auto-updated.
Last update: 2024-09-14 14:46:55 UTC
README
为 Sphinx Search 库 提供集成的 Zend Framework 2 模块。
该仓库包含一个已提供配置(详情见此处)的 ZF2 模块,用于 Sphinx Search 库。
安装
使用 composer
将以下内容添加到您的 composer.json
文件中
"require": {
"php": ">=5.5",
"ripaclub/zf2-sphinxsearch": "~0.8.0"
}
用法
您只需通过您的 Zend Framework 2 的 config/application.config.php
文件加载此模块
return [ // This should be an array of module namespaces used in the application. 'modules' => [ '...', 'SphinxSearch', // Loading current module in your app 'Application', ], // ... ];
最后,配置驱动连接参数(例如在您的 local.config.php
文件中)。
示例
'sphinxql' => [ 'driver' => 'pdo_mysql', 'hostname' => '127.0.0.1', 'port' => 9306, 'charset' => 'UTF8' ],
完成。与 Sphinx Search 库快乐查询!