ulex/elasticsearch-dev-tools

Elasticsearch Dev Tools package for PHP

dev-main 2021-04-02 13:02 UTC

This package is auto-updated.

Last update: 2024-03-29 04:13:04 UTC


README

Elasticsearch DevTools is an Elasticsearch ODM and mapper for PHP. It renders the developer experience more enjoyable while using Elasticsearch queries similarly as you normally would.

License

Created using Elasticsearch v7.x

Installation

First, install the package via Composer:

composer require ulex/elasticsearch-dev-tools

Service Provider

For Laravel

You should publish the RepositoriesServiceProvider:
php artisan vendor:publish --provider="Ulex\ElasticsearchDevTools\ElasticsearchDevToolsServiceProvider" --tag=config

Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

'providers' => [
// ...
Ulex\ElasticsearchDevTools\ElasticsearchDevToolsServiceProvider::class,

For Lumen

In your bootstrap/app.php add this:

$app->register(Ulex\ElasticsearchDevTools\ElasticsearchDevToolsServiceProvider::class);

Config

If config file elasticsearch-dev-tools.php was not published copy it to config folder with:

cp vendor/ulex/elasticsearch-dev-tools/config/elasticsearch-dev-tools.php config/elasticsearch-dev-tools.php

Usage