easybib / silex-elastica
Elastica的Silex服务提供商
0.1.1
2014-01-29 16:39 UTC
Requires
- php: >=5.3.2
- ruflin/elastica: ~0.90.2
- silex/silex: ~1.1
This package is not auto-updated.
Last update: 2024-09-14 15:37:28 UTC
README
这是一个为Silex提供服务的服务提供商,它通过Elastica提供了对Elasticsearch的访问。
入门
使用Composer设置对此包的依赖。一旦你有了一个Silex应用程序骨架,你可以注册服务提供商并设置Elastica选项
$app->register(new EasyBib\Service\Elastica\ElasticaServiceProvider(), array( 'elastica.client_options' => array( 'host' => 'localhost', 'port' => 9200, ), ));
完整的选项集可以在Elastica文档中找到。
依赖
- PHP >= 5.3.2
- Elastica >= 0.90.2
版权
作者
许可证
代码在Apache-2.0许可证下可用。