PHPackages                             kraz/elastic-search-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. [HTTP &amp; Networking](/categories/http)
4. /
5. kraz/elastic-search-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kraz/elastic-search-client
==========================

Elasticsearch Client (PSR-17/18)

1.0.0(1mo ago)069↓100%1MITPHPPHP &gt;=8.4CI passing

Since May 8Pushed 3w agoCompare

[ Source](https://github.com/kraz/elastic-search-client)[ Packagist](https://packagist.org/packages/kraz/elastic-search-client)[ RSS](/packages/kraz-elastic-search-client/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (1)

Elasticsearch PHP Client (PSR-17/18)
====================================

[](#elasticsearch-php-client-psr-1718)

[![CI](https://github.com/kraz/elastic-search-client/actions/workflows/ci.yml/badge.svg)](https://github.com/kraz/elastic-search-client/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/dd8ada62302daf6ea34b63c2bfbd0cb72057940959c33c97b203414119af4c0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72617a2f656c61737469632d7365617263682d636c69656e74)](https://packagist.org/packages/kraz/elastic-search-client)[![GitHub license](https://camo.githubusercontent.com/89ca70defdc6ddada95c2ad9c572374ae97966a2be21fcd98fd1d8b11c95f762/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b72617a2f656c61737469632d7365617263682d636c69656e74)](LICENSE)

Lightweight implementation of Elasticsearch client which can use any HTTP [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible client in combination with any [PSR-17](https://www.php-fig.org/psr/psr-17/) compatible HTTP factory.

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

[](#installation)

```
composer require kraz/elastic-search-client
```

Some compatible HTTP clients
============================

[](#some-compatible-http-clients)

- [symfony/http-client](https://packagist.org/packages/symfony/http-client)
- [guzzlehttp/guzzle](https://packagist.org/packages/guzzlehttp/guzzle)
- [php-http/httplug](https://packagist.org/packages/php-http/httplug)
- [php-http/curl-client](https://packagist.org/packages/php-http/curl-client)
- [php-http/mock-client](https://packagist.org/packages/php-http/mock-client)

License
-------

[](#license)

This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance95

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58638bf409738592e29453577dc33e51e5b97b93b01a6a3ddd32fd3f1e152f41?d=identicon)[kraz1](/maintainers/kraz1)

---

Top Contributors

[![kraz](https://avatars.githubusercontent.com/u/1006092?v=4)](https://github.com/kraz "kraz (3 commits)")

---

Tags

ddddomainelasticsearchpsr-17psr-18elasticsearch

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kraz-elastic-search-client/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[elastic/transport

HTTP transport PHP library for Elastic products

2022.9M9](/packages/elastic-transport)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[claude-php/claude-php-sdk

A universal, framework-agnostic PHP SDK for the Anthropic Claude API with PSR compliance

14440.4k2](/packages/claude-php-claude-php-sdk)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

155.7k](/packages/art4-requests-psr18-adapter)[vultr/vultr-php

The Official Vultr API PHP Wrapper.

2346.5k1](/packages/vultr-vultr-php)

PHPackages © 2026

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