PHPackages                             glodzienski/phenix - 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. glodzienski/phenix

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

glodzienski/phenix
==================

AWS Elasticsearch Service for Laravel/Lumen

1.0.0(6y ago)01.1kMITPHPPHP &gt;=7.0

Since Feb 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/glodzienski/phenix)[ Packagist](https://packagist.org/packages/glodzienski/phenix)[ Docs](https://github.com/glodzienski/phenix)[ RSS](/packages/glodzienski-phenix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (41)Used By (0)

aws-elasticsearch-laravel
=========================

[](#aws-elasticsearch-laravel)

AWS Elasticsearch Service for Laravel/Lumen

**NOTE:** This package only caters search, aggregation, and indexing transactions. Other than that, you can refer to [elasticsearch's official documentation](https://www.elastic.co/guide/en/elasticsearch/client/php-api/index.html). **NOTE:** This package is based on elegisandi/aws-elasticsearch-laravel

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

[](#installation)

```
composer require glodzienski/aws-elasticsearch-laravel

```

Laravel/Lumen Integration
-------------------------

[](#laravellumen-integration)

- Add service provider to your `config/app.php` providers

    ```
    glodzienski\AWSElasticsearchService\ElasticSearchServiceProvider::class

    ```
- Add facade to your `config/app.php` aliases

    ```
    'ElasticSearch' => glodzienski\AWSElasticsearchService\Facades\ElasticSearch::class

    ```
- Set AWS credentials and Elasticsearch config in your `.env` file

    ```
      AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY
      AWS_REGION

      ELASTICSEARCH_ENDPOINT
      ELASTICSEARCH_PORT
      ELASTICSEARCH_SHARDS
      ELASTICSEARCH_REPLICAS
      ELASTICSEARCH_DEFAULT_INDEX
      ELASTICSEARCH_DEFAULT_TYPE
      ELASTICSEARCH_DEFAULT_TIME_FILTER_FIELD

    ```

    When you are already using aws elasticsearch service, set

    ```
      AWS_ELASTICSEARCH_SERVICE=true

    ```

**If you want to configure elasticsearch mappings, settings and/or default type and index, just run:**

```
php artisan vendor:publish --provider=glodzienski\\AWSElasticsearchService\\ElasticSearchServiceProvider

```

**For Lumen:**

- Register service provider to your `bootstrap/app.php`

    ```
    $app->register(glodzienski\AWSElasticsearchService\ElasticSearchServiceProvider::class);

    ```

Basic Usage
-----------

[](#basic-usage)

**Using Facade:**

```
