fabschtr/aws-es-php-handler

AWS signing handler for the Elasticsearch-PHP client.

Installs: 13 250

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 1

pkg:composer/fabschtr/aws-es-php-handler

0.0.1 2017-12-24 15:14 UTC

This package is not auto-updated.

Last update: 2025-10-31 07:37:22 UTC


README

Apache 2 License Total Downloads

AWS signing handler for the Elasticsearch-PHP (elasticsearch/elasticsearch) client.

Installation

composer require fabschtr/aws-es-php-handler

Usage

use Elasticsearch\ClientBuilder;
use Fabschtr\AwsEsPhpHandler\AwsElasticsearchPhpHandler;

$handler = new AwsElasticsearchPhpHandler('AWS_KEY', 'AWS_SECRET', 'eu-central-1');

$this->client = ClientBuilder::create()
            ->setHandler($handler)
            ->setHosts('ELASTIC_HOSTS')
            ->build();