PHPackages                             bethink/elastic-scout - 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. bethink/elastic-scout

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

bethink/elastic-scout
=====================

Elastic Driver for Laravel Scout

9.0.0(3mo ago)07.5kPHPPHP ^8.1|^8.2|^8.3

Since Sep 20Pushed 3mo agoCompare

[ Source](https://github.com/bethinkpl/elastic-scout)[ Packagist](https://packagist.org/packages/bethink/elastic-scout)[ RSS](/packages/bethink-elastic-scout/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (34)Used By (0)

Fork
====

[](#fork)

This is a fork of  with a few changes:

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/640100fcb9a5b5202387182128ab528c11058c4aeb397f07ea5d60ad125cf65b/68747470733a2f2f706f7365722e707567782e6f72672f62657468696e6b706c2f656c61737469632d73636f75742f76)](//packagist.org/packages/bethinkpl/elastic-scout) [![Total Downloads](https://camo.githubusercontent.com/af125082c7118f1dee2a37a3f48eb0f3c1c8d31ca657ced41795effd8eb82045/68747470733a2f2f706f7365722e707567782e6f72672f62657468696e6b706c2f656c61737469632d73636f75742f646f776e6c6f616473)](//packagist.org/packages/bethinkpl/elastic-scout) [![License](https://camo.githubusercontent.com/870be24f81987bed2821c8d2bab88ad83d40d99626204a026183fc7716ca6875/68747470733a2f2f706f7365722e707567782e6f72672f62657468696e6b706c2f656c61737469632d73636f75742f6c6963656e7365)](//packagist.org/packages/bethinkpl/elastic-scout)

Archived
--------

[](#archived)

I haven't had the time to dedicate work to this repo and I don't plan to do so in the future.

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 bethinkpl/elastic-scout
```

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

53

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

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 ~126 days

Recently: every ~395 days

Total

28

Last Release

100d ago

Major Versions

3.0.8 → 4.0.02019-01-15

4.0.0 → 5.0.02020-02-13

5.0.1 → v7.0.02021-04-07

v7.0.1 → 8.0.32021-04-14

8.1.0 → 9.0.02026-02-03

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

v7.0.0PHP ^7.2

8.0.3PHP ^7.2 || ^8.0

8.1.0PHP ^7.2|^8.0|^8.1

9.0.0PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5edab193002ba05b77d59a272e92615c3cf62776c8477b18173218c4fbaea89b?d=identicon)[gitkuba](/maintainers/gitkuba)

![](https://www.gravatar.com/avatar/10cc35e23ef3374fb6ffd9dd0ead18abccc362aaa30bef4e6bcc362921266476?d=identicon)[bethinkpl](/maintainers/bethinkpl)

---

Tags

elasticsearchlaravellaravel-scoutphplaravelelasticsearchelasticscout

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bethink-elastic-scout/health.svg)

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

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