menthol/flexible

This package is abandoned and no longer maintained. The author suggests using the tamayo/laravel-scout-elastic package instead.

Elasticsearch enabled Eloquent models

dev-master 2016-02-12 10:54 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:54:57 UTC


README

Flexible is a Laravel 4 and 5 package that aims to seamlessly integrate Elasticsearch functionality with the Eloquent ORM.

WIP

The API can be changed (and will) without warning until the first beta tag.

Features

  • Plug 'n Play searching functionality for Eloquent models
  • Automatic creation/indexing based on Eloquent model properties and relations
  • Aggregations, Suggestions, Autocomplete, Highlighting, etc. It's all there!
  • Load Eloquent models based on Elasticsearch queries
  • Automatic reindexing on updates of (related) Eloquent models

Installation

Add Flexible to your composer.json file:

"menthol/flexible": "dev-master"

Add the service provider to your Laravel application config:

'Menthol\Flexible\FlexibleServiceProvider'

Credits

This package is very much inspired by these excellent packages that already exist.