PHPackages                             swisnl/laravel-elasticsearch - 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. swisnl/laravel-elasticsearch

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

swisnl/laravel-elasticsearch
============================

Laravel integration for elasticsearch

0.8.0(2mo ago)09.3k↓35.3%[2 issues](https://github.com/swisnl/laravel-elasticsearch/issues)1MITPHPPHP ^8.1CI passing

Since Jul 6Pushed 3mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (18)Versions (10)Used By (1)

laravel-elasticsearch
=====================

[](#laravel-elasticsearch)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d4a9621e51a015b31b22f29b294eddf109d850daed64c74d02203049fafe0ad0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f6c61726176656c2d656c61737469637365617263682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/laravel-elasticsearch)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Buy us a tree](https://camo.githubusercontent.com/cec0a9b35a1c3235bdbe0d13ea8fbd866a23e30280ad6ca27078c1fd4ac1b709/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://plant.treeware.earth/swisnl/laravel-elasticsearch)[![Build Status](https://camo.githubusercontent.com/3c616ac8b28e0b6acb1cd04779d6f915bf662def7c6c85f7cfb8db3c491adb53/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737769736e6c2f6c61726176656c2d656c61737469637365617263682f74657374732e796d6c3f6c6162656c3d7465737473266272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/swisnl/laravel-elasticsearch/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/b2b7e1ead78528df2d1f7e753588cc1cd35b1b61f1df993ddfed8fe85ed04b74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737769736e6c2f6c61726176656c2d656c61737469637365617263682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/laravel-elasticsearch)[![Made by SWIS](https://camo.githubusercontent.com/ef6bdd6ab8d4f47bceb74dcf558b0915c6b419cbba320096324af0518e43091d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302d6d6164652532306279253230535749532d2532333037333741392e7376673f7374796c653d666c61742d737175617265)](https://www.swis.nl)

Laravel package that implements elasticsearch in an easy way. Index various models via the `SyncsWithIndex` trait and customize further by extending the `Document` and `SearchResult` class.

Install
-------

[](#install)

Via Composer

```
$ composer require swisnl/laravel-elasticsearch
```

Change log
----------

[](#change-log)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Thomas Wijnands](https://github.com/tommie1001)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/swisnl/laravel-elasticsearch) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS ❤️ Open Source
-------------------

[](#swis-heart-open-source)

[SWIS](https://www.swis.nl) is a web agency from Leiden, the Netherlands. We love working with open source software.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance84

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.4% 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 ~122 days

Recently: every ~95 days

Total

9

Last Release

66d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8734305?v=4)[SWIS](/maintainers/swisnl)[@swisnl](https://github.com/swisnl)

---

Top Contributors

[![JaZo](https://avatars.githubusercontent.com/u/3475007?v=4)](https://github.com/JaZo "JaZo (31 commits)")[![tommie1001](https://avatars.githubusercontent.com/u/50906358?v=4)](https://github.com/tommie1001 "tommie1001 (24 commits)")[![rolfvandekrol](https://avatars.githubusercontent.com/u/434397?v=4)](https://github.com/rolfvandekrol "rolfvandekrol (2 commits)")

---

Tags

elasticsearchhacktoberfestlaravelphpswisswisnlswisnllaravel-elasticsearch

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/swisnl-laravel-elasticsearch/health.svg)

```
[![Health](https://phpackages.com/badges/swisnl-laravel-elasticsearch/health.svg)](https://phpackages.com/packages/swisnl-laravel-elasticsearch)
```

###  Alternatives

[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[spatie/laravel-site-search

A site search engine

300129.1k](/packages/spatie-laravel-site-search)[swisnl/laravel-fulltext

Fulltext indexing and searching for Laravel

184104.5k6](/packages/swisnl-laravel-fulltext)[codewithdennis/filament-price-filter

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

163.2k](/packages/codewithdennis-filament-price-filter)

PHPackages © 2026

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