PHPackages                             bytexr/laravel-scout-opensearch - 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. bytexr/laravel-scout-opensearch

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

bytexr/laravel-scout-opensearch
===============================

Laravel Scout OpenSearch Engine

v2.2.0(1y ago)467.7k↓46%4MITPHP

Since Mar 27Pushed 1y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (25)Used By (0)

Laravel Scout OpenSearch
========================

[](#laravel-scout-opensearch)

[![Total Downloads](https://camo.githubusercontent.com/bea2e8e8022981f2d6c751ff8e5f7efb9243fae4d1ec147380e9265974f253f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6279746578722f6c61726176656c2d73636f75742d6f70656e736561726368)](https://packagist.org/packages/bytexr/laravel-scout-opensearch)[![Latest Stable Version](https://camo.githubusercontent.com/724dcda06a3bd2081858e8a39d75c359b2f84963335c9231df01b8df16b708ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6279746578722f6c61726176656c2d73636f75742d6f70656e736561726368)](https://packagist.org/packages/bytexr/laravel-scout-opensearch)[![License](https://camo.githubusercontent.com/90feaa7e12e08070117124a8d9793c87cef7781a670524e688395d4c65a8832b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6279746578722f6c61726176656c2d73636f75742d6f70656e736561726368)](https://packagist.org/packages/bytexr/laravel-scout-opensearch)

Introduction
------------

[](#introduction)

Laravel Scout OpenSearch simplifies the integration of Laravel Scout with OpenSearch, offering a seamless experience. Additionally, it boasts full compatibility with AWS OpenSearch, enabling hassle-free implementation.

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

[](#installation)

```
composer require bytexr/laravel-scout-opensearch
```

To make the necessary updates, navigate to config/scout.php and add the following code:

```
return [
    ...

    'opensearch' => [
        'host' => env('OPENSEARCH_HOST', 'https://localhost:9200'),
        'access_key' => env('OPENSEARCH_ACCESS_KEY', 'admin'),
        'secret_key' => env('OPENSEARCH_SECRET_KEY', 'admin'),
        'options' => [
            'ssl_verification' => env('OPENSEARCH_SSL_VERIFICATION', true),
            // Used for AWS
            'sigv4_enabled' => env('OPENSEARCH_SIGV4_ENABLED', false),
            'sigv4_region' =>  env('OPENSEARCH_SIGV4_REGION', 'eu-west-1'),
        ],
    ],

];
```

Finally, ensure that all required environment variables are set in your `.env` file, and don't forget to set the `SCOUT_DRIVER` value to `opensearch`.

Explicit Mapping
----------------

[](#explicit-mapping)

Should you need to specifically define the mapping for your indexes, you can do so by setting the `index-settings` key in config/scout.php as follows:

```
return [
    ...

    'opensearch' => [
        ...
        'index-settings' => [
            Post::class => [
                'mappings' => [
                    'properties' => [
                        'id' => [
                            'type' => 'text',
                        ],
                        'title' => [
                            'type' => 'text',
                        ],
                    ],
                ],
            ],
        ],
    ]
]
```

License
-------

[](#license)

Laravel Scout OpenSearch is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance46

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~31 days

Recently: every ~85 days

Total

24

Last Release

418d ago

Major Versions

1.2.0 → v2.0.02024-05-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ecb582c1ce8a1e0bb2aaf91ca1162160e9f2db3bacd680e2f416fbdbf073e87?d=identicon)[bytexr](/maintainers/bytexr)

---

Top Contributors

[![bytexr](https://avatars.githubusercontent.com/u/129063632?v=4)](https://github.com/bytexr "bytexr (16 commits)")[![agraham-wonde](https://avatars.githubusercontent.com/u/150055161?v=4)](https://github.com/agraham-wonde "agraham-wonde (3 commits)")[![darrena092](https://avatars.githubusercontent.com/u/6018832?v=4)](https://github.com/darrena092 "darrena092 (1 commits)")

---

Tags

searchlaravelawsopensearchscout

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bytexr-laravel-scout-opensearch/health.svg)

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

###  Alternatives

[algolia/scout-extended

Scout Extended extends Laravel Scout adding algolia-specific features

4186.3M6](/packages/algolia-scout-extended)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[teamtnt/laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch

1.1k2.5M28](/packages/teamtnt-laravel-scout-tntsearch-driver)[zing/laravel-scout-opensearch

Laravel Scout custom engine for OpenSearch

33340.2k](/packages/zing-laravel-scout-opensearch)[cloudmediasolutions/laravel-scout-opensearch

OpenSearch engine for Laravel Scout

1824.4k](/packages/cloudmediasolutions-laravel-scout-opensearch)[vanry/laravel-scout-tntsearch

包含中文分词的 Laravel Scout TNTSearch 驱动，支持 scws, phpanalysis 和 jieba 分词。

17811.8k1](/packages/vanry-laravel-scout-tntsearch)

PHPackages © 2026

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