2017 © Pedro Peláez
 

library elasticsearch

Powerful Laravel API using the official PHP client for ElasticSearch

image

spoowy/elasticsearch

Powerful Laravel API using the official PHP client for ElasticSearch

  • Monday, April 13, 2015
  • by Spoowy
  • Repository
  • 3 Watchers
  • 12 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ElasticSearch API for Laravel

Powerful Laravel API using the official PHP client for ElasticSearch, (*1)

  • Version: 1.0.0

Installation

To install the API as a Composer package to be used with Laravel 4, simply add this to your composer.json:, (*2)

"require": {
        "elasticsearch/elasticsearch": "~1.0",
        "spoowy/elasticsearch": "dev-master"
}

..and run composer update(Having any problems with that? Try php artisan dump-autoload and then composer update again). Once it's installed, you can register the service provider in app/config/app.php in the providers array:, (*3)

'providers' => array(
    //...
    'Spoowy\Elasticsearch\ElasticsearchServiceProvider',
)

Then create the config file app/config/elasticsearch.php. Remember, this is an example with default values., (*4)

<?php

use Monolog\Logger;

return array(
        'hosts' => array('localhost:9200'),
        'logPath' => storage_path() . '/logs/elasticsearch-' . php_sapi_name() . '.log',
        'logLevel' => Logger::INFO
);

Documentation

Now, you can access the ElasticSearch API simply by: ElasticSearch::, e.g. ElasticSearch::get($params), (*5)

More detailed information about using this API is sure to come., (*6)

The Versions

13/04 2015

dev-master

9999999-dev http://erwinflaming.com/elasticsearch-laravel-4-package/

Powerful Laravel API using the official PHP client for ElasticSearch

  Sources   Download

The Requires

 

by Erwin Flaming

database laravel analytics search elasticsearch