PHPackages                             pdustdar/laravel-elastic - 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. pdustdar/laravel-elastic

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

pdustdar/laravel-elastic
========================

Elastic Driver for Laravel Scout

8.0.5(4y ago)012MITPHPPHP ^7.2|^8.0

Since Sep 20Pushed 4y agoCompare

[ Source](https://github.com/PooyaDustdar/laravel-elastic)[ Packagist](https://packagist.org/packages/pdustdar/laravel-elastic)[ RSS](/packages/pdustdar-laravel-elastic/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (27)Used By (0)

Laravel Scout Elasticsearch Driver
==================================

[](#laravel-scout-elasticsearch-driver)

[![Latest Stable Version](https://camo.githubusercontent.com/9ffc9616204b9bf88ead5a4854d5677227873c45b89a7f79ed5290af6b1d804c/68747470733a2f2f706f7365722e707567782e6f72672f74616d61796f2f6c61726176656c2d73636f75742d656c61737469632f76)](//packagist.org/packages/tamayo/laravel-scout-elastic) [![Total Downloads](https://camo.githubusercontent.com/b7ea4a691a3d3f5ef9c44ce5e423c739e9146c6ee27769ff0e97990bdecdd17b/68747470733a2f2f706f7365722e707567782e6f72672f74616d61796f2f6c61726176656c2d73636f75742d656c61737469632f646f776e6c6f616473)](//packagist.org/packages/tamayo/laravel-scout-elastic) [![License](https://camo.githubusercontent.com/e7e2aa18e6a1fd41b25d910edd9474280394ed1686398f1b06ff47f8989c4248/68747470733a2f2f706f7365722e707567782e6f72672f74616d61796f2f6c61726176656c2d73636f75742d656c61737469632f6c6963656e7365)](//packagist.org/packages/tamayo/laravel-scout-elastic) [![Build Status](https://camo.githubusercontent.com/e244724b309bef767d8f32d2692d3bd369aa1bc06fcc0031a65112d733cfbed1/68747470733a2f2f7472617669732d63692e6f72672f457269636b54616d61796f2f6c61726176656c2d73636f75742d656c61737469632e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/e244724b309bef767d8f32d2692d3bd369aa1bc06fcc0031a65112d733cfbed1/68747470733a2f2f7472617669732d63692e6f72672f457269636b54616d61796f2f6c61726176656c2d73636f75742d656c61737469632e7376673f6272616e63683d6d6173746572)

This package provides a [Elasticsearch](https://www.elastic.co/products/elasticsearch) driver for Laravel Scout.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require tamayo/laravel-scout-elastic
```

Laravel will automatically register the driver service provider.

#### Install elasticsearch-php client

[](#install-elasticsearch-php-client)

For use this library we recomend using the latest version at this time `(^7.9)`

```
composer require elasticsearch/elasticsearch
```

### Setting up Elasticsearch configuration

[](#setting-up-elasticsearch-configuration)

After you've published the Laravel Scout package configuration, you need to set your driver to `elasticsearch` and add its configuration:

```
// config/scout.php
...
    // Set your driver to elasticsearch
    'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
    /*
    |--------------------------------------------------------------------------
    | Elasticsearch Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure your Elasticsearch settings.
    |
    */
    'elasticsearch' => [
        'hosts' => [
            env('ELASTICSEARCH_HOST', 'localhost'),
            // [
            //     'host'   => env('ELASTICSEARCH_HOST', 'localhost'),
            //     'port'   => env('ELASTICSEARCH_PORT', '9200'),
            //     'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),
            //     'path'   => env('ELASTICSEARCH_PATH', '/elastic'),
            //     'user'   => env('ELASTICSEARCH_USER', 'username'),
            //     'pass'   => env('ELASTICSEARCH_PASS', 'password'),
            // ]
        ],
    ]
...
```

For host configuration you can refer to the official [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)

Usage
-----

[](#usage)

Now you can use Laravel Scout as described in the [Laravel Scout official documentation](https://laravel.com/docs/8.x/scout)

Limitations
-----------

[](#limitations)

**Identifying Users**Currrently user identification is not supported.

Credits
-------

[](#credits)

- [Erick Tamayo](https://github.com/ericktamayo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 51% 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 ~74 days

Recently: every ~81 days

Total

25

Last Release

1731d ago

Major Versions

2.0.0 → 3.0.02017-02-01

2.0.1 → 3.0.82017-10-24

3.0.9 → 4.0.02018-10-15

4.0.0 → 5.0.02019-05-14

5.0.0 → 8.0.02020-09-20

PHP version history (3 changes)0.0.1.x-devPHP &gt;=5.6.4

8.0.0PHP ^7.2

8.0.4PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb0371a2f8b8d79942a03074d23037f6fb0c9fcc5d2fd9826bb5129893c784bb?d=identicon)[pdustdar](/maintainers/pdustdar)

---

Top Contributors

[![ErickTamayo](https://avatars.githubusercontent.com/u/4788817?v=4)](https://github.com/ErickTamayo "ErickTamayo (26 commits)")[![kronthto](https://avatars.githubusercontent.com/u/17156142?v=4)](https://github.com/kronthto "kronthto (5 commits)")[![PooyaDustdar](https://avatars.githubusercontent.com/u/16743813?v=4)](https://github.com/PooyaDustdar "PooyaDustdar (4 commits)")[![bbashy](https://avatars.githubusercontent.com/u/1149200?v=4)](https://github.com/bbashy "bbashy (2 commits)")[![shibby](https://avatars.githubusercontent.com/u/291643?v=4)](https://github.com/shibby "shibby (2 commits)")[![xcaptain](https://avatars.githubusercontent.com/u/4054836?v=4)](https://github.com/xcaptain "xcaptain (2 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (1 commits)")[![CasperLaiTW](https://avatars.githubusercontent.com/u/5094008?v=4)](https://github.com/CasperLaiTW "CasperLaiTW (1 commits)")[![lloy0076](https://avatars.githubusercontent.com/u/1174532?v=4)](https://github.com/lloy0076 "lloy0076 (1 commits)")[![BrianGreenhill](https://avatars.githubusercontent.com/u/1642339?v=4)](https://github.com/BrianGreenhill "BrianGreenhill (1 commits)")[![prajapatinirav](https://avatars.githubusercontent.com/u/7949561?v=4)](https://github.com/prajapatinirav "prajapatinirav (1 commits)")[![pvanhemmen](https://avatars.githubusercontent.com/u/715022?v=4)](https://github.com/pvanhemmen "pvanhemmen (1 commits)")[![semyonchetvertnyh](https://avatars.githubusercontent.com/u/2598761?v=4)](https://github.com/semyonchetvertnyh "semyonchetvertnyh (1 commits)")[![tillkruss](https://avatars.githubusercontent.com/u/665029?v=4)](https://github.com/tillkruss "tillkruss (1 commits)")[![dmitrakovich](https://avatars.githubusercontent.com/u/28905316?v=4)](https://github.com/dmitrakovich "dmitrakovich (1 commits)")[![clsource](https://avatars.githubusercontent.com/u/292738?v=4)](https://github.com/clsource "clsource (1 commits)")

---

Tags

laravelelasticsearchelasticscout

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pdustdar-laravel-elastic/health.svg)

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

###  Alternatives

[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)
