PHPackages                             elastic/enterprise-search - 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. elastic/enterprise-search

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

elastic/enterprise-search
=========================

Enterprise Search official PHP client

v8.18.0(1y ago)25658.2k↓46.1%14[3 issues](https://github.com/elastic/enterprise-search-php/issues)[2 PRs](https://github.com/elastic/enterprise-search-php/pulls)9Apache-2.0PHPPHP ^7.4 || ^8.0CI failing

Since Oct 9Pushed 4mo ago190 watchersCompare

[ Source](https://github.com/elastic/enterprise-search-php)[ Packagist](https://packagist.org/packages/elastic/enterprise-search)[ Docs](https://github.com/elastic/enterprise-search-php)[ RSS](/packages/elastic-enterprise-search/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (5)Versions (59)Used By (9)

Elastic Enterprise Search Client for PHP
========================================

[](#elastic-enterprise-search-client-for-php)

Warning

**Enterprise Search will be discontinued in 9.0.**

Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes. Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: We recommend transitioning to our actively developed Elastic Stack () tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.

Here are some useful links with more information:

- Enterprise Search FAQ:
- Migrating to 9.x from Enterprise Search 8.x versions:

A first-party PHP client to interface with [Elastic Enterpise Search](https://www.elastic.co/enterprise-search)including [Elastic App Search](https://www.elastic.co/app-search/) and [Elastic Workplace Search](https://www.elastic.co/workplace-search).

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

[](#installation)

The package can be installed using [composer](https://getcomposer.org/):

```
composer require elastic/enterprise-search
```

The version follows the Elastic Stack version so `8.0` is compatible with Enterprise Search released in Elastic Stack 8.0.

PSR-18 HTTP library
-------------------

[](#psr-18-http-library)

This project uses `elastic-transport-php` as HTTP library. This is a component that abstracts the usage of any PSR-18 client libraries. It uses the autodiscovery feature of [HTTPlug](http://httplug.io/)to find a compliant library already installed in your `vendor`. If you receive an error like `No PSR-18 clients found` this means you don't have any PSR-18 library installed. We suggest to use [Guzzle](https://github.com/guzzle/guzzle) v7+ as HTTP library. You can require it using composer:

```
composer require guzzlehttp/guzzle

```

If you want to be sure to use a specific HTTP library you need to pass it in the `Client`constructor, as follows:

```
use Elastic\EnterpriseSearch\Client;

$client = new Client([
    'client' => new GuzzleHttp\Client,
   // ...
]);
```

### Guzzle v6

[](#guzzle-v6)

If you want to use Guzzle v6, you need to add the [php-http/guzzle6-adapter](https://github.com/php-http/guzzle6-adapter)as composer requirement.

Documentation
-------------

[](#documentation)

[See the documentation](https://www.elastic.co/guide/en/enterprise-search-clients/php) for how to get started, compatibility info, configuring, and an API reference.

Contributing
------------

[](#contributing)

If you'd like to make a contribution to `enterprise-search-php` we provide [contributing documentation](CONTRIBUTING.md)to ensure your first contribution goes smoothly.

License
-------

[](#license)

`enterprise-search-php` is available under the MIT license. For more details see [LICENSE](LICENSE).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance58

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~29 days

Recently: every ~77 days

Total

52

Last Release

441d ago

Major Versions

7.17.x-dev → v8.0.02022-06-23

8.13.x-dev → 9.0.x-dev2024-06-13

v8.18.0 → 9.2.x-dev2025-04-18

PHP version history (3 changes)v7.12.0beta1PHP ^7.3|^8.0

v7.16.0PHP ^7.4|^8.0

v8.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c7c511421feb14316a01d29a7566bd4fdd97147b5a4f3faa5a065f9d0a0193?d=identicon)[ezimuel](/maintainers/ezimuel)

---

Top Contributors

[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (119 commits)")[![picandocodigo](https://avatars.githubusercontent.com/u/689327?v=4)](https://github.com/picandocodigo "picandocodigo (5 commits)")[![chriscressman](https://avatars.githubusercontent.com/u/362928?v=4)](https://github.com/chriscressman "chriscressman (4 commits)")[![pquentin](https://avatars.githubusercontent.com/u/42327?v=4)](https://github.com/pquentin "pquentin (3 commits)")[![philkra](https://avatars.githubusercontent.com/u/35487337?v=4)](https://github.com/philkra "philkra (2 commits)")[![lcawl](https://avatars.githubusercontent.com/u/26471269?v=4)](https://github.com/lcawl "lcawl (1 commits)")[![jrodewig](https://avatars.githubusercontent.com/u/40268737?v=4)](https://github.com/jrodewig "jrodewig (1 commits)")[![esenmarti](https://avatars.githubusercontent.com/u/4158750?v=4)](https://github.com/esenmarti "esenmarti (1 commits)")

---

Tags

app-searchappsearchclientelasticelastic-app-searchelastic-enterprise-searchelastic-workplace-searchenterprise-searchphpworkplace-searchclientsearchelasticenterpriseworkplaceenterprisesearchappsearchworkplacesearch

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k187.3M1.1k](/packages/elasticsearch-elasticsearch)[ruflin/elastica

Elasticsearch Client

2.3k52.4M228](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15528.5M115](/packages/opensearch-project-opensearch-php)[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)[jsq/amazon-es-php

Support for using IAM authentication with the official Elasticsearch PHP client

9311.4M13](/packages/jsq-amazon-es-php)

PHPackages © 2026

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