PHPackages                             renoki-co/aws-elastic-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. renoki-co/aws-elastic-client

ActiveLibrary[Search &amp; Filtering](/categories/search)

renoki-co/aws-elastic-client
============================

Just a simple Elasticsearch Client handler that signs the requests for AWS Elasticsearch service with the provided credentials.

1.3.0(3y ago)741.6k7[4 PRs](https://github.com/renoki-co/aws-elastic-client/pulls)Apache-2.0PHPCI passing

Since Mar 5Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/renoki-co/aws-elastic-client)[ Packagist](https://packagist.org/packages/renoki-co/aws-elastic-client)[ Docs](https://github.com/renoki-co/aws-elastic-client)[ GitHub Sponsors](https://github.com/rennokki)[ RSS](/packages/renoki-co-aws-elastic-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (9)Used By (0)

AWS Elastic Client Handler
==========================

[](#aws-elastic-client-handler)

[![CI](https://github.com/renoki-co/aws-elastic-client/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/aws-elastic-client/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/e8bead869c7e659623a3c9d7b43ac1ac58cc87a18d4750fc837a2112816b3041/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6177732d656c61737469632d636c69656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/aws-elastic-client/branch/master)[![StyleCI](https://camo.githubusercontent.com/4c328ca2c4e693e691dc39be88184ee2d3f839ea8074d89642f78ef124630064/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3334343539313137392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/344591179)[![Latest Stable Version](https://camo.githubusercontent.com/8dd1c6eceebf58e93680dad67ba78b374208e318c25d856de805e49e48347478/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6177732d656c61737469632d636c69656e742f762f737461626c65)](https://packagist.org/packages/renoki-co/aws-elastic-client)[![Total Downloads](https://camo.githubusercontent.com/6955f6543152e5149c8fe3dc5ba0789ccfa933f6cc7ea9849e9f8ed4d7c215ee/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6177732d656c61737469632d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/aws-elastic-client)[![Monthly Downloads](https://camo.githubusercontent.com/e32f75feea408140f9ab739afc53ac88d5cd9f4c686ac01adc727ce05ccdee2a/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6177732d656c61737469632d636c69656e742f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/aws-elastic-client)[![License](https://camo.githubusercontent.com/dc02c47b5725be69cb1a5ff2b312f3216414e59d8dabe2e15ec3a77b79a885b6/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6177732d656c61737469632d636c69656e742f6c6963656e7365)](https://packagist.org/packages/renoki-co/aws-elastic-client)

Just a simple Elasticsearch Client handler that signs the requests for AWS Elasticsearch service with the provided credentials.

🤝 Supporting
------------

[](#-supporting)

**If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with [Github Sponsors](https://github.com/sponsors/rennokki). 📦**

[![](https://camo.githubusercontent.com/6a6f998521f5b1bea0023ad1fef5799e45f4f07a5a002f0c0affdf2b106c25ae/68747470733a2f2f6769746875622d636f6e74656e742e73332e66722d7061722e7363772e636c6f75642f7374617469632f31382e6a7067)](https://github-content.renoki.org/github-repo/18)

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/aws-elastic-client
```

🙌 Usage
-------

[](#-usage)

To authenticate to AWS, you will need to set the handler that comes with this package:

```
use RenokiCo\AwsElasticHandler\AwsHandler;

$awsHandler = new AwsHandler([
    'enabled' => true,
    'aws_access_key_id' => '...',
    'aws_secret_access_key' => '...',
    'aws_region' => 'us-east-1',
    'aws_session_token' => '...', // optional
]);

$client = ClientBuilder::create()
    ->setHosts(...)
    ->setHandler($awsHandler)
    ->build();
```

If you are building th client statically using `fromConfig()`, pass the `handler` parameter:

```
use RenokiCo\AwsElasticHandler\AwsHandler;

$awsHandler = new AwsHandler([
    'enabled' => true,
    'aws_access_key_id' => '...',
    'aws_secret_access_key' => '...',
    'aws_region' => 'us-east-1',
    'aws_session_token' => '...', // optional
]);

$client = ClientBuilder::fromConfig([
    'hosts' => [
        //
    ],
    'handler' => $awsHandler,
]);
```

The package will make sure to sign each subsequent request that goes through with the IAM credentials you have provided.

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance58

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~166 days

Total

4

Last Release

1393d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21983456?v=4)[rennokki](/maintainers/rennokki)[@rennokki](https://github.com/rennokki)

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (75 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (24 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

amazonawsclientelasticsearchhacktoberfestlaravelphpservicephpclientlaravelawselasticsearchhandlerelastic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/renoki-co-aws-elastic-client/health.svg)

```
[![Health](https://phpackages.com/badges/renoki-co-aws-elastic-client/health.svg)](https://phpackages.com/packages/renoki-co-aws-elastic-client)
```

###  Alternatives

[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

544.0M6](/packages/babenkoivan-elastic-client)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[babenkoivan/elastic-scout-driver

Elasticsearch driver for Laravel Scout

2773.8M5](/packages/babenkoivan-elastic-scout-driver)[babenkoivan/elastic-scout-driver-plus

Extension for Elastic Scout Driver

2862.8M1](/packages/babenkoivan-elastic-scout-driver-plus)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[babenkoivan/elastic-migrations

Elasticsearch migrations for Laravel

1962.5M6](/packages/babenkoivan-elastic-migrations)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
