PHPackages                             vsys/yii2-es - 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. vsys/yii2-es

AbandonedArchivedYii2-extension[Search &amp; Filtering](/categories/search)

vsys/yii2-es
============

Elasticsearch integration and ActiveRecord for the Yii framework

3.0.0(7y ago)010BSD-3-ClausePHP

Since Feb 1Pushed 7y agoCompare

[ Source](https://github.com/VSYSa/yii2-es)[ Packagist](https://packagist.org/packages/vsys/yii2-es)[ RSS](/packages/vsys-yii2-es/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Elasticsearch Query and ActiveRecord for Yii 2
==============================================

[](#elasticsearch-query-and-activerecord-for-yii-2)

This extension provides the [elasticsearch](https://www.elastic.co/products/elasticsearch) integration for the [Yii framework 2.0](http://www.yiiframework.com). It includes basic querying/search support and also implements the `ActiveRecord` pattern that allows you to store active records in elasticsearch.

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/e8dc0bac5fb217e30397c8dd8b6440ed8900e83c6b73c7be5fbec58d3cdc3313/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d656c61737469637365617263682f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-elasticsearch)[![Total Downloads](https://camo.githubusercontent.com/35927709f16f527ff9a07a6abcda05ad8de21e362ad970f636d7a0adc7167b8a/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d656c61737469637365617263682f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-elasticsearch)[![Build Status](https://camo.githubusercontent.com/c145e5c28899166c54b10fe44527b24a7360aabf19da465d00ac621b15e99d75/68747470733a2f2f7472617669732d63692e6f72672f796969736f66742f796969322d656c61737469637365617263682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiisoft/yii2-elasticsearch)

Requirements
------------

[](#requirements)

Dependent on the version of elasticsearch you are using you need a different version of this extension.

- Extension version 2.0.x works with elasticsearch version 1.0 to 4.x.
- Extension version 2.1.x requires at least elasticsearch version 5.0.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yiisoft/yii2-elasticsearch:"~2.1.0"

```

or add

```
"yiisoft/yii2-elasticsearch": "~2.1.0"
```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

To use this extension, you have to configure the Connection class in your application configuration:

```
return [
    //....
    'components' => [
        'elasticsearch' => [
            'class' => 'yii\elasticsearch\Connection',
            'nodes' => [
                ['http_address' => '127.0.0.1:9200'],
                // configure more hosts if you have a cluster
            ],
        ],
    ]
];
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

2579d ago

Major Versions

2.1.x-dev → 3.0.02019-04-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32546566?v=4)[Sysalov Vladislav](/maintainers/VSYSa)[@vsysa](https://github.com/vsysa)

---

Top Contributors

[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (1912 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (830 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (652 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (328 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (148 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (123 commits)")[![Ragazzo](https://avatars.githubusercontent.com/u/1748844?v=4)](https://github.com/Ragazzo "Ragazzo (75 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (46 commits)")[![beowulfenator](https://avatars.githubusercontent.com/u/5413344?v=4)](https://github.com/beowulfenator "beowulfenator (45 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (42 commits)")[![pmoust](https://avatars.githubusercontent.com/u/2493339?v=4)](https://github.com/pmoust "pmoust (36 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (26 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (20 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (20 commits)")[![LarryUllman](https://avatars.githubusercontent.com/u/1674823?v=4)](https://github.com/LarryUllman "LarryUllman (18 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (16 commits)")[![tarasio](https://avatars.githubusercontent.com/u/1010578?v=4)](https://github.com/tarasio "tarasio (12 commits)")[![crtlib](https://avatars.githubusercontent.com/u/4428231?v=4)](https://github.com/crtlib "crtlib (12 commits)")[![bwoester](https://avatars.githubusercontent.com/u/309565?v=4)](https://github.com/bwoester "bwoester (12 commits)")[![vsysa](https://avatars.githubusercontent.com/u/32546566?v=4)](https://github.com/vsysa "vsysa (11 commits)")

---

Tags

elasticsearchyii2

### Embed Badge

![Health badge](/badges/vsys-yii2-es/health.svg)

```
[![Health](https://phpackages.com/badges/vsys-yii2-es/health.svg)](https://phpackages.com/packages/vsys-yii2-es)
```

###  Alternatives

[nervetattoo/elasticsearch

ElasticSearch client for PHP 5.3

342190.1k1](/packages/nervetattoo-elasticsearch)[borales/yii2-elasticsearch-behavior

Yii2 behavior to support Elasticsearch indexing

2110.2k](/packages/borales-yii2-elasticsearch-behavior)

PHPackages © 2026

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