Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basster/cilex-elastica
Cilex service provider for Elastica
https://github.com/basster/cilex-elastica
Last synced: about 4 hours ago
JSON representation
Cilex service provider for Elastica
- Host: GitHub
- URL: https://github.com/basster/cilex-elastica
- Owner: Basster
- License: mit
- Created: 2015-10-01T14:58:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T22:45:26.000Z (about 9 years ago)
- Last Synced: 2024-03-29T18:20:21.883Z (8 months ago)
- Language: PHP
- Size: 168 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# basster/cilex-elastica
[![Build Status](https://travis-ci.org/Basster/cilex-elastica.svg?branch=master)](https://travis-ci.org/Basster/cilex-elastica) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/d157422c-912c-4015-ac30-3b989181378f/mini.png)](https://insight.sensiolabs.com/projects/d157422c-912c-4015-ac30-3b989181378f)
This is a service provider for [Cilex](http://cilex.github.io/) which makes
access to [Elasticsearch](http://www.elasticsearch.org) available through
[Elastica](http://elastica.io).This library is a Cilex adaptation of [easybib/silex-elastica](https://github.com/easybiblabs/silex-elastica).
## Getting Started
Set up the dependency on this package using [Composer](http://packagist.org/about-composer).
Once you have a Silex application skeleton you can register the service provider
and set Elastica options:```php
$app->register(new Basster\Cilex\Elastica\Provider\ElasticaProvider(), [
'elastica.client_options' => [
'host' => 'localhost',
'port' => 9200,
],
]);
```The full set of options is available on the [Elastica documentation](http://elastica.io).
## License ##
The code is available under the [MIT](LICENSE) license.