PHPackages                             ruflin/elastica - 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. ruflin/elastica

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

ruflin/elastica
===============

Elasticsearch Client

9.0.0(7mo ago)2.3k50.4M—3.7%731[93 issues](https://github.com/ruflin/Elastica/issues)[15 PRs](https://github.com/ruflin/Elastica/pulls)20MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Mar 4Pushed 2w ago81 watchersCompare

[ Source](https://github.com/ruflin/Elastica)[ Packagist](https://packagist.org/packages/ruflin/elastica)[ Docs](http://elastica.io/)[ RSS](/packages/ruflin-elastica/feed)WikiDiscussions 9.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (108)Used By (20)

Elastica: elasticsearch PHP Client
==================================

[](#elastica-elasticsearch-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/7ba5c1c87a60af5005afb0ecc6862d53344c88b43ae1b9bf334c4ce032a01fc0/68747470733a2f2f706f7365722e707567782e6f72672f7275666c696e2f456c6173746963612f762f737461626c65)](https://packagist.org/packages/ruflin/elastica)[![Build Status](https://github.com/ruflin/elastica/actions/workflows/continuous-integration.yaml/badge.svg?branch=9.x)](https://github.com/ruflin/Elastica/actions/workflows/continuous-integration.yaml?query=branch=9.x)[![codecov.io](https://camo.githubusercontent.com/01b1c151f2670190c3c3d678cd37c42b27cace0004781f71089771c5043a0734/68747470733a2f2f636f6465636f762e696f2f67682f7275666c696e2f456c6173746963612f6272616e63682f392e782f67726170682f62616467652e737667)](https://app.codecov.io/github/ruflin/Elastica/tree/9.x)[![Total Downloads](https://camo.githubusercontent.com/d06083d123c0647df837a3f98d21b4a96920d55aabdc1fdd38765a27af638868/68747470733a2f2f706f7365722e707567782e6f72672f7275666c696e2f456c6173746963612f646f776e6c6f616473)](https://packagist.org/packages/ruflin/elastica)[![Join the chat at https://gitter.im/ruflin/Elastica](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/ruflin/Elastica?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

All documentation for Elastica can be found under [Elastica.io](http://Elastica.io/). If you have questions, don't hesitate to ask them on [Stack Overflow](http://stackoverflow.com/questions/tagged/elastica)and add the Tag "Elastica" or in our [Gitter](https://gitter.im/ruflin/Elastica) channel.

All library issues should go to the [issue tracker from GitHub](https://github.com/ruflin/Elastica/issues).

Compatibility
-------------

[](#compatibility)

This release is compatible with all Elasticsearch 9.0 releases and onwards.

The testsuite is run against the most recent minor version of Elasticsearch, currently 9.1.0.

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

[](#contributing)

Contributions are always welcome. For details on how to contribute, check the [CONTRIBUTING](CONTRIBUTING.md) file.

Versions &amp; Dependencies
---------------------------

[](#versions--dependencies)

This project tries to follow Elasticsearch in terms of [End of Life](https://www.elastic.co/support/eol) and maintenance since 5.x. It is generally recommended to use the latest point release of the relevant branch.

Elastica branchElasticSearchelasticsearch-phpPHP[9.x](https://github.com/ruflin/Elastica/tree/9.x)9.x^9.0&gt;=8.1 &lt;8.6[8.x](https://github.com/ruflin/Elastica/tree/8.x)8.x^8.4&gt;=8.0 &lt;8.4[7.x](https://github.com/ruflin/Elastica/tree/7.x)7.x^7.0^7.2 || ^8.0[6.x](https://github.com/ruflin/Elastica/tree/6.x)6.x^6.0^7.0 || ^8.0Unmaintained versions:

Elastica versionElasticSearchelasticsearch-phpPHP[5.x](https://github.com/ruflin/Elastica/tree/5.x)5.x^5.0&gt;=5.6[3.x](https://github.com/ruflin/Elastica/tree/3.x)2.4.0no&gt;=5.4[2.x](https://github.com/ruflin/Elastica/tree/2.x)1.7.2no&gt;=5.3.3

###  Health Score

82

↑

ExcellentBetter than 100% of packages

Maintenance81

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community57

Growing community involvement

Maturity97

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53.9% 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 ~56 days

Recently: every ~14 days

Total

89

Last Release

182d ago

Major Versions

6.2.1 → 7.2.02022-08-02

7.3.2 → 8.0.0-alpha12024-05-03

6.x-dev → 8.2.02025-09-23

8.x-dev → 9.0.02025-10-01

7.x-dev → 9.x-dev2025-11-17

PHP version history (13 changes)v0.19.0.0PHP &gt;=5.3.0

v0.90.1.0PHP &gt;=5.3.3

3.0.0-beta1PHP &gt;=5.4.0

5.0.0-beta1PHP &gt;=5.6.0

6.0.0-beta1PHP ^7.0

7.0.0-beta1PHP ^7.1

7.0.0-beta2PHP ^7.2

7.1.0PHP ^7.2 || ^8.0

6.2.0PHP ^7.0||^8.0

8.0.0-alpha1PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0

8.1.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

8.2.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

9.0.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc7271c677daf239eb964af50a53c44c9b267cd9343f91d0e0922d39c9a44c70?d=identicon)[ruflin](/maintainers/ruflin)

![](https://www.gravatar.com/avatar/4a788c96bbcf89371ff0c614ad9f1655363369cb8e17ffd7afbebf046da6dad8?d=identicon)[thepanz](/maintainers/thepanz)

---

Top Contributors

[![ruflin](https://avatars.githubusercontent.com/u/244900?v=4)](https://github.com/ruflin "ruflin (1377 commits)")[![im-denisenko](https://avatars.githubusercontent.com/u/3239892?v=4)](https://github.com/im-denisenko "im-denisenko (170 commits)")[![deguif](https://avatars.githubusercontent.com/u/993399?v=4)](https://github.com/deguif "deguif (169 commits)")[![munkie](https://avatars.githubusercontent.com/u/102297?v=4)](https://github.com/munkie "munkie (142 commits)")[![p365labs](https://avatars.githubusercontent.com/u/553026?v=4)](https://github.com/p365labs "p365labs (75 commits)")[![thePanz](https://avatars.githubusercontent.com/u/226021?v=4)](https://github.com/thePanz "thePanz (47 commits)")[![franmomu](https://avatars.githubusercontent.com/u/720690?v=4)](https://github.com/franmomu "franmomu (46 commits)")[![ewgRa](https://avatars.githubusercontent.com/u/735804?v=4)](https://github.com/ewgRa "ewgRa (40 commits)")[![fabian](https://avatars.githubusercontent.com/u/13346?v=4)](https://github.com/fabian "fabian (39 commits)")[![jappievw](https://avatars.githubusercontent.com/u/718437?v=4)](https://github.com/jappievw "jappievw (35 commits)")[![rayward](https://avatars.githubusercontent.com/u/1217111?v=4)](https://github.com/rayward "rayward (34 commits)")[![jlinn](https://avatars.githubusercontent.com/u/4562038?v=4)](https://github.com/jlinn "jlinn (34 commits)")[![lavoiesl](https://avatars.githubusercontent.com/u/1216046?v=4)](https://github.com/lavoiesl "lavoiesl (30 commits)")[![krzaczek](https://avatars.githubusercontent.com/u/5773701?v=4)](https://github.com/krzaczek "krzaczek (28 commits)")[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (25 commits)")[![mwiercinski](https://avatars.githubusercontent.com/u/715765?v=4)](https://github.com/mwiercinski "mwiercinski (23 commits)")[![leabaertschi](https://avatars.githubusercontent.com/u/564566?v=4)](https://github.com/leabaertschi "leabaertschi (22 commits)")[![webdevsHub](https://avatars.githubusercontent.com/u/1021820?v=4)](https://github.com/webdevsHub "webdevsHub (22 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (22 commits)")[![juneym](https://avatars.githubusercontent.com/u/602912?v=4)](https://github.com/juneym "juneym (21 commits)")

---

Tags

elasticsearchhacktoberfestphpclientsearch

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ruflin-elastica/health.svg)

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

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

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

PHP Client for OpenSearch

15224.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)

PHPackages © 2026

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