PHPackages                             elastic/elasticsearch-serverless - 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/elasticsearch-serverless

Abandoned → [elasticsearch/elasticsearch](/?search=elasticsearch%2Felasticsearch)ArchivedLibrary[Search &amp; Filtering](/categories/search)

elastic/elasticsearch-serverless
================================

PHP Client for Elasticsearch serverless

v0.2.0(1y ago)22.4kMITPHPPHP ^8.0CI passing

Since Aug 28Pushed 1y ago183 watchersCompare

[ Source](https://github.com/elastic/elasticsearch-serverless-php)[ Packagist](https://packagist.org/packages/elastic/elasticsearch-serverless)[ RSS](/packages/elastic-elasticsearch-serverless/feed)WikiDiscussions main Synced 1mo ago

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

Elasticsearch Serverless Client
===============================

[](#elasticsearch-serverless-client)

[![main](https://github.com/elastic/elasticsearch-serverless-php/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/elastic/elasticsearch-serverless-php/actions/workflows/tests.yml)

Warning

Starting with the release of the Elastic Stack 9.0.0, this client will be discontinued. Instead, you can use the latest version of the [Elasticsearch PHP Client](https://github.com/elastic/elasticsearch-php) to build your Elasticsearch Serverless PHP applications.

This is the official Elastic client for the [Elasticsearch Cloud Serverless](https://www.elastic.co/elasticsearch/serverless).

If you're looking to develop your PHP application with the Elasticsearch Stack, you should look at the [Elasticsearch Client](https://github.com/elastic/elasticsearch-php) instead.

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

[](#installation)

You can install the library using [composer](https://getcomposer.org/) with the following command:

```
composer require elastic/elasticsearch-serverless
```

### Instantiate the client

[](#instantiate-the-client)

When you have installed elasticsearch-php you can start using it with the `Client` class. You can use the `ClientBuilder` to create this object:

```
require 'vendor/autoload.php';

use Elastic\Elasticsearch\Serverless\ClientBuilder;

$client = ClientBuilder::create()
  ->setEndpoint('')
  ->setApiKey('')
  ->build();

# $client is an object of Elastic\Elasticsearch\Serverless\Client class
```

### Usage

[](#usage)

You can read to the [official documentation](https://docs.elastic.co/serverless/elasticsearch/php-client-getting-started)page for a getting started guide.

Development
-----------

[](#development)

See [CONTRIBUTING](./CONTRIBUTING.md).

License 📗
---------

[](#license-)

[MIT](LICENSE) © [Elastic](https://www.elastic.co/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance40

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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 ~100 days

Total

4

Last Release

646d ago

### 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 (29 commits)")[![szabosteve](https://avatars.githubusercontent.com/u/22324794?v=4)](https://github.com/szabosteve "szabosteve (2 commits)")

---

Tags

elasticsearchelasticsearch-clientclientsearchelasticsearchelasticserverless

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k178.3M943](/packages/elasticsearch-elasticsearch)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

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

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

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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