PHPackages                             imreish/elasticsearch-dsl - 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. imreish/elasticsearch-dsl

ActiveLibrary

imreish/elasticsearch-dsl
=========================

Elasticsearch DSL library

02PHP

Since Feb 8Pushed 2y agoCompare

[ Source](https://github.com/imreish/elasticsearch-dsl)[ Packagist](https://packagist.org/packages/imreish/elasticsearch-dsl)[ RSS](/packages/imreish-elasticsearch-dsl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ElasticsearchDSL
================

[](#elasticsearchdsl)

[![codecov](https://camo.githubusercontent.com/f782e9bd0724b7302738d2e8ded40388404f4f7c13ea14a6ab753124101b84ad/68747470733a2f2f636f6465636f762e696f2f6769746875622f62697374726f736b2f656c61737469637365617263682d64736c2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d435047584b56324c4e34)](https://codecov.io/github/bistrosk/elasticsearch-dsl)[![Latest Stable Version](https://camo.githubusercontent.com/1e2d6e0646ad5d6a5545328bfdfaaa55c106cc7e8317d4414d3af84fbaed4fef/687474703a2f2f706f7365722e707567782e6f72672f62697374726f736b2f656c61737469637365617263682d64736c2f76)](https://packagist.org/packages/bistrosk/elasticsearch-dsl) [![Total Downloads](https://camo.githubusercontent.com/cde25ad785172c81305edb5bcc72dba6fd0391a9a90ef0fa18ff3c39cb6f5c43/687474703a2f2f706f7365722e707567782e6f72672f62697374726f736b2f656c61737469637365617263682d64736c2f646f776e6c6f616473)](https://packagist.org/packages/bistrosk/elasticsearch-dsl) [![Latest Unstable Version](https://camo.githubusercontent.com/03d6c558ef7c27758aa4ddcfdba0630f8fa0bea96c47b1827fb530df23171869/687474703a2f2f706f7365722e707567782e6f72672f62697374726f736b2f656c61737469637365617263682d64736c2f762f756e737461626c65)](https://packagist.org/packages/bistrosk/elasticsearch-dsl) [![License](https://camo.githubusercontent.com/2c5a162dafc4ee55a3fb3e7107b60adcafdf3d39f9fe9c5918c8b7936d1e3d12/687474703a2f2f706f7365722e707567782e6f72672f62697374726f736b2f656c61737469637365617263682d64736c2f6c6963656e7365)](https://packagist.org/packages/bistrosk/elasticsearch-dsl) [![PHP Version Require](https://camo.githubusercontent.com/93cc8fa5bad7c107823e21b4d6d36a293eab3786114606d7e1fba6da83d20c86/687474703a2f2f706f7365722e707567782e6f72672f62697374726f736b2f656c61737469637365617263682d64736c2f726571756972652f706870)](https://packagist.org/packages/bistrosk/elasticsearch-dsl)

Fork of [ongr-io/ElasticsearchDSL](https://github.com/ongr-io/ElasticsearchDSL) library with updated PHP and Elasticsearch version.
-----------------------------------------------------------------------------------------------------------------------------------

[](#fork-of-ongr-ioelasticsearchdsl-library-with-updated-php-and-elasticsearch-version)

Introducing Elasticsearch DSL library to provide objective query builder for [elasticsearch-php](https://github.com/elastic/elasticsearch-php) client. You can easily build any Elasticsearch query and transform it to an array.

Version matrix
--------------

[](#version-matrix)

Elasticsearch versionElasticsearchDSL version&gt;= 8.0&gt;= 8.0Documentation
-------------

[](#documentation)

[The online documentation of the bundle is here](docs/index.md)

Try it!
-------

[](#try-it)

### Installation

[](#installation)

Install library with [composer](https://getcomposer.org):

```
$ composer require imreish/elasticsearch-dsl
```

> [elasticsearch-php](https://github.com/elastic/elasticsearch-php) client is defined in the composer requirements, no need to install it.

### Search

[](#search)

The library is standalone and is not coupled with any framework. You can use it in any PHP project, the only requirement is composer. Here's the example:

Create search:

```
