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

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

triadev/laravel-elasticsearch-provider
======================================

A laravel service provider for the elasticsearch php client.

v3.0.2(7y ago)15313MITPHPPHP &gt;=7.1

Since May 3Pushed 7y ago2 watchersCompare

[ Source](https://github.com/triadev/LaravelElasticsearchProvider)[ Packagist](https://packagist.org/packages/triadev/laravel-elasticsearch-provider)[ RSS](/packages/triadev-laravel-elasticsearch-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (8)Versions (36)Used By (3)

LaravelElasticsearchProvider
============================

[](#laravelelasticsearchprovider)

[![Software license](https://camo.githubusercontent.com/97d77625cb48622102d23fe0045c7e6c7fb973b0a1b78dee3ac76f184077b0aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis](https://camo.githubusercontent.com/65dbf2ab8f3af8057e015aa4a456d1de4887de73dec9687867bf5c53ee182b30/68747470733a2f2f7472617669732d63692e6f72672f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/triadev/LaravelElasticsearchProvider)[![Coveralls](https://camo.githubusercontent.com/24fd8b3d1faf8413e4057ad2ed343f593be0d844ae2d764e8ef54488a4642d75/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/triadev/LaravelElasticsearchProvider?branch=master)[![CodeCov](https://camo.githubusercontent.com/d331aefae85bd4f3c27f074448d0a974c31fee529f571c0c49164f34f1e3306a/68747470733a2f2f636f6465636f762e696f2f67682f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/triadev/LaravelElasticsearchProvider)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2a1c4cc82643dea5af2cafd066777462a02f459357627ada7b65c6a1aece1833/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/triadev/LaravelElasticsearchProvider/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/849eed7ef2f30d6d9233c3933da691531173c19e7088bbe29f4dfeeafb8a60aa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/triadev/LaravelElasticsearchProvider/?branch=master)[![Build Status](https://camo.githubusercontent.com/e748aacf5cd62a04f2be7498ec3775ad194649f950d32662c7f6d507f7a52af4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747269616465762f4c61726176656c456c617374696373656172636850726f76696465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/triadev/LaravelElasticsearchProvider/build-status/master)

[![Latest stable](https://camo.githubusercontent.com/e105c32283103d54818a84c5bf23b16a7e5937f35c4645d20ecc4d80c4e05f58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747269616465762f6c61726176656c2d656c61737469637365617263682d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-provider)[![Latest development](https://camo.githubusercontent.com/db11b8cb4c6a2e99c0aaf8cf35c12a284e104d0548b4f2456c3978703a08b4bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f747269616465762f6c61726176656c2d656c61737469637365617263682d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-provider)[![Monthly installs](https://camo.githubusercontent.com/1b8c643be81995e703810a66bf049b2b10d1b5910611c8a9a62a388ce7bdbac7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f747269616465762f6c61726176656c2d656c61737469637365617263682d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-provider/stats)[![Total Downloads](https://camo.githubusercontent.com/5d03c4d7900f2bf8287c267826820959cc97bb0ce0b7c9baa256f04454b9b4a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747269616465762f6c61726176656c2d656c61737469637365617263682d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-provider)

A laravel service provider for the elasticsearch php client:

Supported laravel versions
--------------------------

[](#supported-laravel-versions)

[![Laravel 5.6](https://camo.githubusercontent.com/1bd291589054cd0fea96c97b26e57f7dfd024f3d20572a13a74a64e37aa053d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![Laravel 5.6](https://camo.githubusercontent.com/19208e4e17c5a44f6eeb2ca49987cf944b671fbd1069f1e5cc006c509f119e2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e362d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![Laravel 5.7](https://camo.githubusercontent.com/01e109b20d194f8c9f7398bde86682d9457d92fbf7485b4ffabf6746df741d64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)

Supported elasticsearch versions
--------------------------------

[](#supported-elasticsearch-versions)

[![Elasticsearch 6.0](https://camo.githubusercontent.com/810d03fd98470d0400d68f20b1fe4dc219e4a8a887c96ce5ce3b545e71475380/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.1](https://camo.githubusercontent.com/bc2e01ea13c32ac5cb11c1a7dce2abf6d98891c8f4697973715b6f9a5447192c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.2](https://camo.githubusercontent.com/6f0ef3d891eaf0eeb74cb60fdc5c7a74bfe5879aa428ecc5758dea885fc2f920/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.3](https://camo.githubusercontent.com/93ac37d9096d3c081e5a46d1a0aea549f2fe8b8a09bab0fefe2c85a753e55fac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.4](https://camo.githubusercontent.com/922fceaef72c0a5ab286fd0b454b5c477b97c51b0e13037edd5f763971c9e711/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e342d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)

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

[](#installation)

### Composer

[](#composer)

> composer require triadev/laravel-elasticsearch-provider

### Application

[](#application)

The package is registered through the package discovery of laravel and Composer.

>

Once installed you can now publish your config file and set your correct configuration for using the package.

```
php artisan vendor:publish --provider="Triadev\Es\Provider\ElasticsearchServiceProvider" --tag="config"
```

This will create a file `config/triadev-elasticsearch.php`.

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

[](#configuration)

KeyEnvValueDescriptionDefaulthostsELASTICSEARCH\_HOSTSSTRINGHostslocalhostretriesELASTICSEARCH\_RETRIESINTEGERoperation retries3### Example: hosts

[](#example-hosts)

> Delimiter for different hosts: | (pipe)

```
http://localhost:9200/|https://username:password!#$?*abc@foo.com:9200/

```

Reporting Issues
----------------

[](#reporting-issues)

If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.

Alternatively, fork the project and make a pull request. :)

Testing
-------

[](#testing)

> composer test

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Christopher Lorke](https://github.com/triadev)
- [All Contributors](../../contributors)

Other
-----

[](#other)

### Project related links

[](#project-related-links)

- [Wiki](https://github.com/triadev/LaravelElasticsearchProvider/wiki)
- [Issue tracker](https://github.com/triadev/LaravelElasticsearchProvider/issues)

### Author

[](#author)

- [Christopher Lorke](mailto:christopher.lorke@gmx.de)

### License

[](#license)

The code for LaravelElasticsearchProvider is distributed under the terms of the MIT license (see [LICENSE](LICENSE)).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~18 days

Recently: every ~31 days

Total

35

Last Release

2678d ago

Major Versions

v0.0.3 → v1.0.02017-05-03

v1.14.0 → v2.0.02018-09-06

v2.0.2 → v3.0.02018-11-30

PHP version history (2 changes)v0.0.1PHP &gt;=7.0

v1.9.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/806ca8236e565a4a76aaad0ad4382dc52f1bc4b7850712878e1fb89826cd2bb8?d=identicon)[triadev](/maintainers/triadev)

---

Top Contributors

[![triadev](https://avatars.githubusercontent.com/u/10552858?v=4)](https://github.com/triadev "triadev (10 commits)")

---

Tags

elasticsearchlaravelmigrationversioninglaravelelasticsearchlumen

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)

PHPackages © 2026

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