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

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

wangcb/laravel-scout-elastic
============================

elastic-drives

v1.0.5(2y ago)1141MITPHPPHP ^7.2|^8.0|^8.1

Since Jun 21Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

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

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

[![Latest Stable Version](https://github.com/wangcb/laravel-scout-elastic)](//packagist.org/packages/wangcb/laravel-scout-elastic) [![Total Downloads](https://camo.githubusercontent.com/963c28806032f5847a5ec4821562a609c225da19342ded2c2f84421d8c2552bf/68747470733a2f2f706f7365722e707567782e6f72672f77616e6763622f6c61726176656c2d73636f75742d656c61737469632f646f776e6c6f616473)](//packagist.org/packages/wangcb/laravel-scout-elastic) [![License](https://camo.githubusercontent.com/13655a6a513a39bd6788e98b8594d9a07cc80c01dd463c92c39d3b1a67646607/68747470733a2f2f706f7365722e707567782e6f72672f77616e6763622f6c61726176656c2d73636f75742d656c61737469632f6c6963656e7365)](//packagist.org/packages/wangcb/laravel-scout-elastic) [![Build Status](https://camo.githubusercontent.com/fd89c06c14ff2fe59b1cb24cb4022b8d11d35467aa8bf4936261c47487b93235/68747470733a2f2f7472617669732d63692e6f72672f77616e6763622f6c61726176656c2d73636f75742d656c61737469632e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/fd89c06c14ff2fe59b1cb24cb4022b8d11d35467aa8bf4936261c47487b93235/68747470733a2f2f7472617669732d63692e6f72672f77616e6763622f6c61726176656c2d73636f75742d656c61737469632e7376673f6272616e63683d6d6173746572)

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 wangcb/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)

- [Wangcb](https://github.com/wangcb)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/234f8347dba1af9c33f86daa5cf57da872b55105fbcd288b7eb4dda114ec917b?d=identicon)[wangcb](/maintainers/wangcb)

---

Top Contributors

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

---

Tags

laravelelasticsearchelasticscout

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/wangcb-laravel-scout-elastic/health.svg)](https://phpackages.com/packages/wangcb-laravel-scout-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)
