basster/cilex-elastica

Elastica 的 Cilex 服务提供商

1.0 2015-10-01 14:59 UTC

This package is auto-updated.

Last update: 2024-09-22 05:47:42 UTC


README

Build Status SensioLabsInsight

这是一个为 Cilex 提供服务的服务提供商,它通过 Elastica 提供对 Elasticsearch 的访问。

这个库是 easybib/silex-elastica 的 Cilex 适配版本。

入门指南

使用 Composer 设置对这个包的依赖。一旦你有了 Silex 应用程序骨架,你可以注册服务提供商并设置 Elastica 选项

$app->register(new Basster\Cilex\Elastica\Provider\ElasticaProvider(), [
    'elastica.client_options' => [
        'host' => 'localhost',
        'port' => 9200,
    ],
]);

完整的选项集可以在 Elastica 文档 中找到。

许可证

代码在 MIT 许可证下可用。