PHPackages                             lacasera/elastic-bridge - 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. lacasera/elastic-bridge

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

lacasera/elastic-bridge
=======================

An eloquent way to search

v1.0.2(6mo ago)22[3 PRs](https://github.com/lacasera/elastic-bridge/pulls)MITPHPPHP ^8.2|^8.3CI passing

Since Apr 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/lacasera/elastic-bridge)[ Packagist](https://packagist.org/packages/lacasera/elastic-bridge)[ Docs](https://github.com/lacasera/elastic-bridge)[ GitHub Sponsors](https://github.com/Lacasera)[ RSS](/packages/lacasera-elastic-bridge/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (17)Versions (14)Used By (0)

An Eloquent Way To Search.
==========================

[](#an-eloquent-way-to-search)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05a1ea5f6096445761c693ea85ab1ed813f6bccaad999ed837d516c4712629ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616361736572612f656c61737469632d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lacasera/elastic-bridge)[![GitHub Tests Action Status](https://camo.githubusercontent.com/06a813a1c67583702fd9d8489ae29220734651725e5f6410122c1cdef8ba4bed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c616361736572612f656c61737469632d6272696467652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/lacasera/elastic-bridge/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f20113c61b86e46e449bac7879275f082a12100bdc352217200db672c220388a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c616361736572612f656c61737469632d6272696467652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/lacasera/elastic-bridge/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bd2806cf5f38f20ecaecf8c3cba4ea22fcd75acc52a72eda907e39d7f7aafd04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c616361736572612f656c61737469632d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lacasera/elastic-bridge)

ElasticBridge allows you to write `Fluent`, `Eloquent` like Elasticsearch queries in your laravel application.

With ElasticBridge, you can interact with Elasticsearch indexes as easily as you would with traditional Eloquent models, bringing the power of Elasticsearch into the Laravel ecosystem with no effort.

This package simplifies the complexity of Elasticsearch queries, allowing you to execute powerful search operations while maintaining the elegance and familiarity of Laravel's syntax.

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

[](#requirements)

- PHP 8.2 or 8.3
- Laravel 10.x, 11.x, or 12.x
- Elasticsearch 8.x

Compatibility Matrix
--------------------

[](#compatibility-matrix)

Laravel VersionPHP VersionTestbench VersionCarbon VersionPHPUnit Version10.x8.2, 8.38.\*^2.63^10.511.x8.2, 8.39.\*^2.63^10.512.x8.310.\*^3.8.4^11.5.3Installation
------------

[](#installation)

Install the package via Composer:

```
composer require lacasera/elastic-bridge

```

Overview
--------

[](#overview)

```
    php artisan make:bridge HotelRoom

```

```
