New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chaospower/laravel-elastic-indexer

Laravel Elastic Eloquent Query Builder
522 1
Install
composer require chaospower/laravel-elastic-indexer:dev-master
PHP:>=5.5.9
License:MIT
Last Updated:Jan 6, 2016
Links: GitHub  ·  Packagist
Maintainer: ChaosPower

WARNING

This package is currently in development stage. Use at your own risk.

Laravel Elastic Indexer

TODO: Package Intro

Requirements

  • PHP 5.5
  • PHP 5.6
  • ElasticSearch 1.7
  • ElasticSearch 2.0
  • Laravel 5.1

Features

  • Automatic Indexing

Installation

composer require chaospower/laravel-elastic-indexer

Go to your project root where artisan.php is found. Then publish the vendor package

php artisan vendor:publish

Edit your config/app.php then add the provider

ElasticEqb\Providers\ElasticProvider::class

Using Elastic Indexer

All models should use and implement DoesElasticIndexer. Doing so will allow the service to listen to specific models and CRUD the Elastic side of the model. It will also do the elastic map automatically.

/**
 * Class Agency
 *
 * @package Travel\Models
 */
class Agency extends Model implements ElasticIndexer
{
    use DoesElasticIndexer;
}

Milestones

  • ElasticBuilder
  • ElasticSchemaBuilder

TODOs

Give ability to listen to all models not having the instance of DoesElasticIndexer

Plans

Convert package as a Laravel Database

Related Packages

laravel/pint

An opinionated code formatter for PHP.

231,346,362 3,177
tightenco/duster

Automatic configuration for Laravel apps to apply Tighten's standard linting & c...

3,613,015 607
directorytree/ldaprecord-laravel

LDAP Authentication & Management for Laravel.

3,073,403 574
realodix/haiku

A tool to manage and maintain Adblock filter lists.

1,275,038 3
hemp/presenter

Easy Model Presenters in Laravel

663,217 247