psr18-adapter / ruflin-elastica
Installs: 9 449
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- ruflin/elastica: >=2.0.0
README
Install
Via Composer
composer require psr18-adapter/ruflin-elastica
Usage
This would be how a service configuration would look like when using symfony/dependency-injection:
services: Psr18Adapter\Ruflin\Elastica\RuflinPsr18Transport: autowire: true arguments: $client: '@httplug.client.es' Elastica\Connection: arguments: - { host: "%es_host%", port: "%es_port%" } calls: - [setTransport, ['@Psr18Adapter\Ruflin\Elastica\RuflinPsr18Transport']] Elastica\Client: calls: - [setConnections, [['@Elastica\Connection']]]
Licensing
MIT license. Please see License File for more information.