# elastic/elasticsearch-php

Official PHP client for Elasticsearch.

Repository: https://github.com/elastic/elasticsearch-php
Canonical: https://ross.abutalabs.com/products/elasticsearch-php
Homepage: https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
Language: PHP
License: MIT
License Family: permissive
Topics: elasticsearch, php, client
Last push: 2026-08-24T06:09:09+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 4871, "days_push": 9, "days_rel": 29, "gap_med": 52.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5339, forks 964 (observed 2026-08-28T04:09:15.823812+00:00)

## What it is
The official PHP client for Elasticsearch, providing 500+ endpoints for indexing, searching, updating, and deleting documents. It is distributed via Composer and maintained by Elastic.

## Use cases
- connect to elasticsearch from php
- index and search documents in php
- add full-text search to a php application
- query elasticsearch rest apis from php
- mock elasticsearch client in php tests

## When to choose
- your PHP application needs to interact with Elasticsearch
- you want an officially supported, up-to-date client with full API coverage

## When to avoid
- you use a different language runtime
- you need a search engine itself rather than a client

## Facets
- artifact type: library
- maturity: active
- function: search-engine, http-client, database-driver
- domain: databases, backend, web-development
- platform: php, cross-platform
- tags: elasticsearch, official-client, rest-api, full-text-search, search

## Member repositories
- elastic/elasticsearch-php (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.823812+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:58:50.594565+00:00, confidence not recorded.
  - readme: https://github.com/elastic/elasticsearch-php (fetched 2026-08-28T04:09:15.823812+00:00, sha 1346a810592d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
