PHPackages                             tarfin-labs/elastic-aws-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. tarfin-labs/elastic-aws-client

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

tarfin-labs/elastic-aws-client
==============================

The official PHP Elasticsearch AWS client integrated with Laravel

3.0.0(2mo ago)214.7k↓38.3%MITPHPPHP ^8.3|^8.4|^8.5CI failing

Since Jun 23Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/tarfin-labs/elastic-aws-client)[ Packagist](https://packagist.org/packages/tarfin-labs/elastic-aws-client)[ RSS](/packages/tarfin-labs-elastic-aws-client/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (8)Versions (14)Used By (0)

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

[](#elastic-aws-client)

The official PHP Elasticsearch client for AWS Elasticsearch Service integrated with Laravel.

Contents
--------

[](#contents)

- [Compatibility](#compatibility)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)

Compatibility
-------------

[](#compatibility)

The current version of Elastic AWS Client has been tested with the following configuration:

- PHP 8.3 - 8.4 - 8.5
- Elasticsearch 7.x
- AWS-SDK-PHP ^3.80
- Laravel 13.x

Installation
------------

[](#installation)

The library can be installed via Composer:

```
composer require tarfin-labs/elastic-aws-client
```

Configuration
-------------

[](#configuration)

To change the client settings you need to publish the configuration file first:

```
php artisan vendor:publish --provider="ElasticAwsClient\ServiceProvider"
```

You can use a bunch of settings supported by [\\Elasticsearch\\ClientBuilder::fromConfig](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html#_building_the_client_from_a_configuration_hash)method in the `config/elastic-aws-client.php` file as this factory is used under the hood:

```
return [
    'hosts' => [
        [
            'host'            => env('ELASTICSEARCH_HOST', 'localhost'),
            'port'            => env('ELASTICSEARCH_PORT', 9200),
            'scheme'          => env('ELASTICSEARCH_SCHEME', null),
            'user'            => env('ELASTICSEARCH_USER', null),
            'pass'            => env('ELASTICSEARCH_PASS', null),

            // AWS
            'aws'             => env('AWS_ELASTICSEARCH_ENABLED', false),
            'aws_region'      => env('AWS_DEFAULT_REGION', ''),
            'aws_key'         => env('AWS_ACCESS_KEY_ID', ''),
            'aws_secret'      => env('AWS_SECRET_ACCESS_KEY', ''),
            'aws_credentials' => null
        ],
    ],
    'sslVerification' => null,
    'retries' => null,
    'sniffOnStart' => false,
    'httpHandler' => null,
    'connectionPool' => null,
    'connectionSelector' => null,
    'serializer' => null,
    'connectionFactory' => null,
    'endpoint' => null,
    'namespaces' => [],
];
```

Usage
-----

[](#usage)

Type hint `\Elasticsearch\Client` or use `resolve` function to retrieve the client instance in your code:

```
namespace App\Console\Commands;

use Elasticsearch\Client;
use Illuminate\Console\Command;

class CreateIndex extends Command
{
    protected $signature = 'create:index {name}';

    protected $description = 'Creates an index';

    public function handle(Client $client)
    {
        $client->indices()->create([
            'index' => $this->argument('name')
        ]);
    }
}
```

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance83

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.9% 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 ~302 days

Recently: every ~442 days

Total

8

Last Release

86d ago

Major Versions

v1.0.1 → v2.0.02020-10-06

2.x-dev → 3.0.02026-04-08

PHP version history (6 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.3

v2.1.0PHP ^7.3 || ^8.0

v2.2.0PHP ^7.3|^8.0|^8.1

v2.3.0PHP ^7.3|^8.0|^8.1|^8.2

3.0.0PHP ^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4394344?v=4)[Turan Karatuğ](/maintainers/tkaratug)[@tkaratug](https://github.com/tkaratug)

![](https://www.gravatar.com/avatar/e252316490c5fc7bae7eb25b6c0cb301b49fbc706c32896fea9467b64cf3653b?d=identicon)[Tarfin Labs](/maintainers/Tarfin%20Labs)

---

Top Contributors

[![tkaratug](https://avatars.githubusercontent.com/u/4394344?v=4)](https://github.com/tkaratug "tkaratug (10 commits)")[![frkcn](https://avatars.githubusercontent.com/u/374634?v=4)](https://github.com/frkcn "frkcn (3 commits)")

---

Tags

phpclientlaravelawselasticsearchelastic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

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

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

936603.4k2](/packages/mailerlite-laravel-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

399672.8k](/packages/jeroen-g-explorer)[babenkoivan/elastic-scout-driver

Elasticsearch driver for Laravel Scout

2824.1M7](/packages/babenkoivan-elastic-scout-driver)[babenkoivan/elastic-scout-driver-plus

Extension for Elastic Scout Driver

2883.1M3](/packages/babenkoivan-elastic-scout-driver-plus)[babenkoivan/elastic-migrations

Elasticsearch migrations for Laravel

1962.7M8](/packages/babenkoivan-elastic-migrations)

PHPackages © 2026

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