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 7y 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 yesterday

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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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://www.gravatar.com/avatar/4cb90a56a7e5c736d2312c10b50bb1975f65418e457ac01cecf6ad1f6560597f?d=identicon)[thucnc](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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