https://github.com/xmarcos/elasticsearchserviceprovider
A Silex Service Provider for Elasticsearch
https://github.com/xmarcos/elasticsearchserviceprovider
elasticsearch php silex
Last synced: 6 months ago
JSON representation
A Silex Service Provider for Elasticsearch
- Host: GitHub
- URL: https://github.com/xmarcos/elasticsearchserviceprovider
- Owner: xmarcos
- License: mit
- Created: 2014-12-01T14:09:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-17T21:21:56.000Z (almost 3 years ago)
- Last Synced: 2024-11-18T10:55:04.816Z (7 months ago)
- Topics: elasticsearch, php, silex
- Language: PHP
- Homepage:
- Size: 211 KB
- Stars: 8
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElasticsearchServiceProvider
[](https://travis-ci.org/xmarcos/ElasticsearchServiceProvider)
[](https://scrutinizer-ci.com/g/xmarcos/ElasticsearchServiceProvider/code-structure)
[](https://scrutinizer-ci.com/g/xmarcos/ElasticsearchServiceProvider)
[](https://packagist.org/packages/xmarcos/elasticsearch-service-provider)
[](LICENSE)
[](https://packagist.org/packages/xmarcos/elasticsearch-service-provider)
[](https://insight.sensiolabs.com/projects/c32f1a2e-bd23-41f8-8933-04976e454bd7)A [Silex](https://github.com/silexphp/Silex) Service Provider for the official [Elasticsearch Client](https://github.com/elasticsearch/elasticsearch-php).
## Installation
```json
{
"require": {
"xmarcos/elasticsearch-service-provider": "dev-master"
}
}
```## Usage
```php
use Silex\Application;
use xmarcos\Silex\ElasticsearchServiceProvider$app = new Application();
$app->register(new ElasticsearchServiceProvider(), [
'elasticsearch.params' => [
'hosts' => [
'127.0.0.1:9200'
],
'logging' => false
]
]);$app['elasticsearch']->ping();
```## License
MIT License