PHPackages                             thucnc/laravel-scout-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. [API Development](/categories/api)
4. /
5. thucnc/laravel-scout-elasticsearch

ActiveLibrary[API Development](/categories/api)

thucnc/laravel-scout-elasticsearch
==================================

Elasticsearch driver for Laravel Scout

017PHP

Since Jun 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ncthuc/laravel-scout-elasticsearch)[ Packagist](https://packagist.org/packages/thucnc/laravel-scout-elasticsearch)[ RSS](/packages/thucnc-laravel-scout-elasticsearch/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-scout-elasticsearch)

This package provides a Elasticsearch driver for [Laravel Scout](https://laravel.com/docs/5.6/scout).

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

[](#installation)

First, install Laravel Scout Elasticsearch via the Composer package manager:

```
composer require gtk/laravel-scout-elasticsearch

```

When using the Elasticsearch driver, you should configure your Elasticsearch `hosts` in your `config/scout.php` configuration file.

```
'elasticsearch' => [
    'hosts' => [
        env('ELASTICSEARCH_HOST', 'http://localhost:9200'),
    ],
],

```

Usage
-----

[](#usage)

Default usage can be found on the [Laravel Scout documentation](https://laravel.com/docs/scout).

You may begin searching a model using the `search` method. The search method accepts a single string that will be used to search your models. You should then chain the `get` method onto the search query to retrieve the Eloquent models that match the given search query:

```
$orders = App\Order::search('Star Trek')->get();

```

In addition, the `search` method accepts an array that will be used as an Elasticsearch raw query to perform an advanced search:

```
$orders = App\Order::search([
    'query' => [
        'query_string' => [
            'query' => 'Star Trek',
        ],
    ],
])->get();

```

You can check [Elastic document](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/_search_operations.html) for more information.

License
-------

[](#license)

Laravel Scout Elasticsearch is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2088055?v=4)[Thuc Nguyen Canh](/maintainers/thucnc)[@thucnc](https://github.com/thucnc)

---

Top Contributors

[![ncthuc](https://avatars.githubusercontent.com/u/548487?v=4)](https://github.com/ncthuc "ncthuc (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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