PHPackages                             limenet/laravel-elastica-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. limenet/laravel-elastica-bridge

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

limenet/laravel-elastica-bridge
===============================

A simple bridge between Laravel and Elasticsearch using Elastica

v2.1.0(2mo ago)1343[1 PRs](https://github.com/limenet/laravel-elastica-bridge/pulls)MITPHPPHP ^8.3CI passing

Since May 9Pushed 2w ago1 watchersCompare

[ Source](https://github.com/limenet/laravel-elastica-bridge)[ Packagist](https://packagist.org/packages/limenet/laravel-elastica-bridge)[ Docs](https://github.com/limenet/laravel-elastica-bridge)[ RSS](/packages/limenet-laravel-elastica-bridge/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (38)Versions (21)Used By (0)

Laravel-Elastica Bridge
=======================

[](#laravel-elastica-bridge)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6726cadf3f4dfd0b23558deaf759b23dc5c566c2286bbee76ee31a5e952dcc5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652e7376673f7374796c653d666c6174)](https://packagist.org/packages/limenet/laravel-elastica-bridge)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f20e0a413ca595c3d4b2e5013ec853a0b11ece4987c8c882d9ce8c0053043ed2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652f72756e2d74657374732e796d6c3f6c6162656c3d7465737473)](https://github.com/limenet/laravel-elastica-bridge/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/484cbd2a5aa2e10dc0030b18606372877fa8518c205da1beb67ce7882b95e728/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6c6162656c3d636f64652532307374796c65)](https://github.com/limenet/laravel-elastica-bridge/actions/workflows/fix-php-code-style-issues.yml)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/35c5553325fbcd8cc4244e7644e3283937e484cc9efe3e69bc55ac1340ac4402/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652f7068707374616e2e796d6c3f6c6162656c3d7068707374616e)](https://github.com/limenet/laravel-elastica-bridge/actions/workflows/phpstan.yml)[![codecov](https://camo.githubusercontent.com/5b0c7a7015519f35ecb211ad726a91941f5806e3b147707144536ca98a0bd65c/68747470733a2f2f636f6465636f762e696f2f6769746875622f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d325a45383549494c4b52)](https://codecov.io/github/limenet/laravel-elastica-bridge)[![Total Downloads](https://camo.githubusercontent.com/70faa3f9df10708df5a3258c8e41a666261ec50b4e45171e2239bc0d803d9dd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696d656e65742f6c61726176656c2d656c6173746963612d6272696467652e7376673f7374796c653d666c6174)](https://packagist.org/packages/limenet/laravel-elastica-bridge)[![License](https://camo.githubusercontent.com/a4b8fca0e1a3dcd6f4f9d331bd37e3351b8766a04359d00acef7b84cf747c885/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c696d656e65742f6c61726176656c2d656c6173746963612d627269646765)](LICENSE.md)[![Packagist PHP Version Support](https://camo.githubusercontent.com/202fd2faa0bfb3da04bc25abea8274990e28457f57ab458dd7c84428a787b101/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c696d656e65742f6c61726176656c2d656c6173746963612d627269646765)](https://camo.githubusercontent.com/202fd2faa0bfb3da04bc25abea8274990e28457f57ab458dd7c84428a787b101/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c696d656e65742f6c61726176656c2d656c6173746963612d627269646765)

A simple bridge between Laravel and Elasticsearch using Elastica, based on .

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

[](#requirements)

- PHP 8.1+
- Laravel 10.0
- [Job Batching](https://laravel.com/docs/8.x/queues#job-batching) is setup

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

[](#installation)

You can install the package via composer:

```
composer require limenet/laravel-elastica-bridge
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Limenet\LaravelElasticaBridge\LaravelElasticaBridgeServiceProvider" --tag="elastica-bridge-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Limenet\LaravelElasticaBridge\LaravelElasticaBridgeServiceProvider" --tag="elastica-bridge-config"
```

This is the contents of the published config file:

```
return [
    'elasticsearch' => [
        'host' => env('ELASTICSEARCH_HOST', 'localhost'),
        'port' => env('ELASTICSEARCH_PORT', '9200'),
    ],
    'indices' => [],
    'events' => [
        'listen' => true,
    ],
];
```

Usage
-----

[](#usage)

1. Add `Limenet\LaravelElasticaBridge\Model\ElasticsearchableInterface` and `Limenet\LaravelElasticaBridge\Model\ElasticsearchableTrait` to a model
2. Create a class extending `Limenet\LaravelElasticaBridge\Index\AbstractIndex`
3. Add the index to your config (`elastica-bridge.indices`)
4. Run `php artisan elastica-bridge:index`
5. Check using `php artisan elastica-bridge:status`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Linus Metzler](https://github.com/limenet)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% 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 ~99 days

Recently: every ~247 days

Total

19

Last Release

88d ago

Major Versions

v1.9.0 → v2.0.0-beta.12025-04-04

PHP version history (4 changes)v1.0.0PHP ^8.0

v1.6.0PHP ^8.1

v2.0.0-beta.1PHP ^8.2

v2.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/60ffeab38b702282a7178b82152e912d8a5e934fe5cb63df272a9392f00b8f84?d=identicon)[limenet](/maintainers/limenet)

---

Top Contributors

[![limenet](https://avatars.githubusercontent.com/u/474329?v=4)](https://github.com/limenet "limenet (180 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (30 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (17 commits)")

---

Tags

elasticaelasticsearchlaravellaravellimenetlaravel-elastica-bridge

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/limenet-laravel-elastica-bridge/health.svg)

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

###  Alternatives

[aurorawebsoftware/aauth

Laravel Aauth

411.9k1](/packages/aurorawebsoftware-aauth)[codewithdennis/filament-price-filter

A simple and customizable price filter for FilamentPHP, allowing users to easily refine results based on specified price ranges.

163.9k](/packages/codewithdennis-filament-price-filter)[slimani/filament-media-manager

A media manager plugin for Filament.

115.1k](/packages/slimani-filament-media-manager)

PHPackages © 2026

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