library aws-signature-middleware
Middleware to sign request for AWS API
wizacha/aws-signature-middleware
Middleware to sign request for AWS API
- Friday, January 12, 2018
- by mnapoli
- Repository
- 4 Watchers
- 20 Stars
- 52,061 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 0 Open issues
- 5 Versions
- 17 % Grown
AwsEsConnection
Kind of connector to use AWS Elasticsearch Service with elastic/elasticsearch-php client, (*1)
, (*2)
Installation
composer require wizacha/aws-signature-middleware
, (*3)
Usage
Exemple with elasticsearch client, (*4)
<?php
$credentials = new \Aws\Credentials\Credentials('id', 'secret');
$signature = new \Aws\Signature\SignatureV4('es', 'eu-west-1');
$middleware = new \Wizacha\Middleware\AwsSignatureMiddleware($credentials, $signature);
$defaultHandler = \Elasticsearch\ClientBuilder::defaultHandler();
$awsHandler = $middleware($defaultHandler);
$clientBuilder = \Elasticsearch\ClientBuilder::create();
$clientBuilder
->setHandler($awsHandler)
->setHosts(['endpoint.eu-west-1.es.amazonaws.com:80'])
;
$client = $clientBuilder->build();
dev-master
9999999-dev
Middleware to sign request for AWS API
Sources
Download
MIT
The Requires
The Development Requires
middleware
aws
signature
guzzle
v0.1.2
0.1.2.0
Middleware to sign request for AWS API
Sources
Download
MIT
The Requires
The Development Requires
middleware
aws
signature
guzzle
dev-fix-regression-old-es
dev-fix-regression-old-es
Middleware to sign request for AWS API
Sources
Download
MIT
The Requires
The Development Requires
middleware
aws
signature
guzzle
v0.1.1
0.1.1.0
Middleware to sign request for AWS API
Sources
Download
MIT
The Requires
The Development Requires
middleware
aws
signature
guzzle
v0.1.0
0.1.0.0
Middleware to sign request for AWS API
Sources
Download
MIT
The Requires
middleware
aws
signature
guzzle