PHPackages                             friendsofhyperf/elasticsearch - 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. friendsofhyperf/elasticsearch

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

friendsofhyperf/elasticsearch
=============================

Elasticsearch client for hyperf

v3.1.75(5mo ago)32.0kMITPHP

Since May 17Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/friendsofhyperf/elasticsearch)[ Packagist](https://packagist.org/packages/friendsofhyperf/elasticsearch)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-elasticsearch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (32)Used By (0)

Elasticsearch
=============

[](#elasticsearch)

[![Latest Stable Version](https://camo.githubusercontent.com/f29cc73b5063ce412766ea5bda62f892f06741bb838ecd20ffac3e2642320a18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f656c6173746963736561726368)](https://packagist.org/packages/friendsofhyperf/elasticsearch)[![Total Downloads](https://camo.githubusercontent.com/267d9871e5ac991a478e53d7c8e3d002026b1478aad3eed24d53010c534efa28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f656c6173746963736561726368)](https://packagist.org/packages/friendsofhyperf/elasticsearch)[![License](https://camo.githubusercontent.com/eea3458ff845005f07e164789d5cb5b63c0ad956623f480b0d87b776037c3942/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f656c6173746963736561726368)](https://github.com/friendsofhyperf/elasticsearch)

The Elasticsearch client for Hyperf.

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

[](#installation)

```
composer require friendsofhyperf/elasticsearch
```

Usage
-----

[](#usage)

```
use FriendsOfHyperf\Elasticsearch\ClientBuilderFactory;

class Foo
{
    public function __construct(protected ClientBuilderFactory $clientBuilderFactory)
    {
    }

    public function handle()
    {
        $client = $clientBuilderFactory->create()->build();
        // ...
    }
}
```

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~55 days

Recently: every ~68 days

Total

31

Last Release

171d ago

Major Versions

0.6.0 → 1.x-dev2022-03-07

0.x-dev → v3.1.02024-03-05

PHP version history (3 changes)0.3.2PHP &gt;=7.3

1.x-devPHP &gt;=8.0

v3.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (13 commits)")

---

Tags

phpelasticsearchswoole

### Embed Badge

![Health badge](/badges/friendsofhyperf-elasticsearch/health.svg)

```
[![Health](https://phpackages.com/badges/friendsofhyperf-elasticsearch/health.svg)](https://phpackages.com/packages/friendsofhyperf-elasticsearch)
```

PHPackages © 2026

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