PHPackages                             triadev/laravel-elasticsearch-config-builder - 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. triadev/laravel-elasticsearch-config-builder

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

triadev/laravel-elasticsearch-config-builder
============================================

Elasticsearch config (mappings + settings) builder for laravel.

v1.0.0(7y ago)07MITPHPPHP &gt;=7.1

Since Sep 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/triadev/LaravelElasticsearchConfigBuilder)[ Packagist](https://packagist.org/packages/triadev/laravel-elasticsearch-config-builder)[ RSS](/packages/triadev-laravel-elasticsearch-config-builder/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

LaravelElasticsearchConfigBuilder
=================================

[](#laravelelasticsearchconfigbuilder)

[![Software license](https://camo.githubusercontent.com/02cc6573ffe1442034ecdc89aa48067a1dcc081b4acb6f98ca1b576a5e34fa81/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f747269616465762f4c61726176656c456c6173746963736561726368436f6e6669674275696c6465722e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis](https://camo.githubusercontent.com/8b55137d447becbcc2fef62a66c0137d1034ccda61d0e9ee0056bbedb7f8fafa/68747470733a2f2f7472617669732d63692e6f72672f747269616465762f4c61726176656c456c6173746963736561726368436f6e6669674275696c6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/triadev/LaravelElasticsearchConfigBuilder)[![Coveralls](https://camo.githubusercontent.com/8e086933c3441c5ef521ce50354e5320453fe93478f8d9109a0e7981098782f0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f747269616465762f4c61726176656c456c6173746963736561726368436f6e6669674275696c6465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/triadev/LaravelElasticsearchConfigBuilder?branch=master)[![CodeCov](https://camo.githubusercontent.com/85dc1cf0582a701bcb54dc87eb8161fe2c3c835679807f736364921d086bd602/68747470733a2f2f636f6465636f762e696f2f67682f747269616465762f4c61726176656c456c6173746963736561726368436f6e6669674275696c6465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/triadev/LaravelElasticsearchConfigBuilder)[![Latest stable](https://camo.githubusercontent.com/955b340afadcf4fa8d52e51c7e59646e1379154c0502a5af10aa9a8c4458581d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747269616465762f6c61726176656c2d656c61737469637365617263682d636f6e6669672d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-config-builder)[![Latest development](https://camo.githubusercontent.com/930c660a884cfa699550a05839cd1b89f54f9bbe9677386acd23c5ebc416b852/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f747269616465762f6c61726176656c2d656c61737469637365617263682d636f6e6669672d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-config-builder)[![Monthly installs](https://camo.githubusercontent.com/2a852fe1fbf2a9eab84e4f3fe3a1ed95b00fa7dbe39efd85f9b748031bc5e952/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f747269616465762f6c61726176656c2d656c61737469637365617263682d636f6e6669672d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/triadev/laravel-elasticsearch-config-builder/stats)

Elasticsearch config (mappings + settings) builder for laravel.

Supported laravel versions
--------------------------

[](#supported-laravel-versions)

[![Laravel 5.5](https://camo.githubusercontent.com/1bd291589054cd0fea96c97b26e57f7dfd024f3d20572a13a74a64e37aa053d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![Laravel 5.6](https://camo.githubusercontent.com/19208e4e17c5a44f6eeb2ca49987cf944b671fbd1069f1e5cc006c509f119e2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e362d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![Laravel 5.7](https://camo.githubusercontent.com/01e109b20d194f8c9f7398bde86682d9457d92fbf7485b4ffabf6746df741d64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)

Supported elasticsearch versions
--------------------------------

[](#supported-elasticsearch-versions)

[![Elasticsearch 6.0](https://camo.githubusercontent.com/810d03fd98470d0400d68f20b1fe4dc219e4a8a887c96ce5ce3b545e71475380/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.1](https://camo.githubusercontent.com/bc2e01ea13c32ac5cb11c1a7dce2abf6d98891c8f4697973715b6f9a5447192c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.2](https://camo.githubusercontent.com/6f0ef3d891eaf0eeb74cb60fdc5c7a74bfe5879aa428ecc5758dea885fc2f920/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.3](https://camo.githubusercontent.com/93ac37d9096d3c081e5a46d1a0aea549f2fe8b8a09bab0fefe2c85a753e55fac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)[![Elasticsearch 6.4](https://camo.githubusercontent.com/922fceaef72c0a5ab286fd0b454b5c477b97c51b0e13037edd5f763971c9e711/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c61737469637365617263682d362e342d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.elastic.co/)

Main features
-------------

[](#main-features)

- Build mappings
- Build settings
- Multilanguage keys
- Multilanguage indices
- Mapping validation check

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

[](#installation)

### Composer

[](#composer)

> composer require triadev/laravel-elasticsearch-config-builder

### Application

[](#application)

The package is registered through the package discovery of laravel and Composer.

>

Configuration
-------------

[](#configuration)

KeyValueDescriptionfilePathSTRINGFile path for elasticsearch configsvalidation.whitelistFilterARRAY---indicesARRAY\[INDEX =&gt; VERSION, ...\]### Mappings

[](#mappings)

Directory (i.e. 1.0.0) with elasticsearch config files.

#### mappings.php (Example)

[](#mappingsphp-example)

```
return [
    TYPE => [
        'properties' => [
            FIELD => [
                'type' => TYPE
            ],
            ...
        ],
        ...
    ],
    ...
];

```

#### settings.php (Example)

[](#settingsphp-example)

```
return [
    'refresh_interval' => "30s",
    'analysis' => [
        'filter' => [
            'germanStop' => [
                'type' => 'stop',
                'stopwords' => '_german_'
            ]
        ],
        'analyzer' => [
            'exampleAnalyzer' => [
                'type' => 'custom',
                'tokenizer' => 'standard',
                'filter' => [
                    'germanStop'
                ]
            ]
        ]
    ]
];
```

#### translations.php (Example)

[](#translationsphp-example)

KeyValueDescriptiontypeSTRINGfield or indexlocalesARRAYdeDE, enUS, ...fieldsARRAYfields to translationconfigPerLocaleARRAY---```
return [
    'type' => 'field',
    'locales' => [
        'enUS'
    ],
    'fields' => [
        'example.properties.title'
    ],
    'configPerLocale' => [
        'example.properties.title' => [
            'enUS' => [
                'analyzer' => 'exampleAnalyzerEn'
            ]
        ]
    ]
];
```

Reporting Issues
----------------

[](#reporting-issues)

If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.

Alternatively, fork the project and make a pull request. :)

Testing
-------

[](#testing)

1. docker-compose -f docker-compose.yml up
2. composer test

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Christopher Lorke](https://github.com/triadev)
- [All Contributors](../../contributors)

Other
-----

[](#other)

### Project related links

[](#project-related-links)

- [Wiki](https://github.com/triadev/LaravelElasticsearchConfigBuilder/wiki)
- [Issue tracker](https://github.com/triadev/LaravelElasticsearchConfigBuilder/issues)

### License

[](#license)

The code for LaravelElasticsearchConfigBuilder is distributed under the terms of the MIT license (see [LICENSE](LICENSE)).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2802d ago

Major Versions

v0.0.1 → v1.0.02018-09-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/806ca8236e565a4a76aaad0ad4382dc52f1bc4b7850712878e1fb89826cd2bb8?d=identicon)[triadev](/maintainers/triadev)

---

Top Contributors

[![triadev](https://avatars.githubusercontent.com/u/10552858?v=4)](https://github.com/triadev "triadev (1 commits)")

---

Tags

elasticsearchlaravellaravelelasticsearch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/triadev-laravel-elasticsearch-config-builder/health.svg)

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

###  Alternatives

[baijunyao/laravel-scout-elasticsearch

Elasticsearch Driver for Laravel Scout

8023.7k1](/packages/baijunyao-laravel-scout-elasticsearch)

PHPackages © 2026

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