# ruflin/Elastica

Elastica is a PHP client for elasticsearch

Repository: https://github.com/ruflin/Elastica
Canonical: https://ross.abutalabs.com/products/elastica
Homepage: http://elastica.io/
Language: PHP
License: MIT
License Family: permissive
Topics: hacktoberfest, php, elasticsearch
Last push: 2026-07-28T21:06:18+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 26, longevity 100
- inputs: {"age_days": 5797, "days_push": 36, "days_rel": 336, "gap_med": 152.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2269, forks 726 (observed 2026-08-28T04:06:32.974083+00:00)

## What it is
Elastica is a PHP client library for Elasticsearch that provides an object-oriented API for indexing, searching, and aggregating documents. It tracks Elasticsearch releases closely, with the 9.x branch supporting Elasticsearch 9.0+ and PHP 8.1-8.5.

## Use cases
- index and search documents in elasticsearch from php
- run full-text search queries in a php application
- build aggregations and analytics over elasticsearch data
- manage elasticsearch indices and mappings from php
- add search functionality to a symfony or laravel app

## When to choose
- your PHP application needs a higher-level, object-oriented Elasticsearch client
- you want a mature, actively maintained library with long-running version branches
- you need indexing, querying, and aggregation support in one package

## When to avoid
- you are not using PHP
- you need a client for OpenSearch or another Elasticsearch fork
- you prefer the official low-level elasticsearch-php client

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

## Member repositories
- ruflin/Elastica (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:32.974083+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-30T02:42:00.233038+00:00, confidence not recorded.
  - readme: https://github.com/ruflin/Elastica (fetched 2026-08-28T04:06:32.974083+00:00, sha 438467835eec)
  - homepage: http://elastica.io/ (fetched 2026-08-29T10:22:23.787348+00:00, sha 237fc7cec9d7)
  - site_page: https://elastica.io/getting-started (fetched 2026-08-29T10:22:23.792478+00:00, sha 4defd4b35107)
  - site_page: https://elastica.io/faq (fetched 2026-08-29T10:22:23.790375+00:00, sha fae50006204f)
  - site_page: https://elastica.io/releases (fetched 2026-08-29T10:22:23.794182+00:00, sha 4004ede65930)
- Data as of 2026-08-30T08:39:29.467469+00:00.
