Download the PHP package neelkanthk/esloader without Composer
On this page you can find all versions of the php package neelkanthk/esloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neelkanthk/esloader
More information about neelkanthk/esloader
Files in neelkanthk/esloader
Package esloader
Short Description A lighweight PHP package for indexing data into Elasticsearch index.
License MIT
Informations about the package esloader
EsLoader is a lighweight PHP package for indexing data from multiple sources into Elasticsearch index.
Table of Contents
Features
- Simple and Easy 3 step integration.
- Supports CSV, XML and JSON files.
- Support for MongoDb and MySQL coming soon in next release.
- Indexes data quickly by leveraging the bulk indexing feature of Elasticsearch.
- Supports integration of AWS Elasticsearch Service.
- Fully configurable - Define your own index name, custom mapping and settings and even set the size of each batch request.
NOTE 1: This package is developed and tested on PHP 7.x and Elasticsearch 6.x.
NOTE 2: This package uses _doc
for the _type
meta field of Elasticsearch document. This setting is not configurable. To know more read : Removal of mapping types.
Installation
$ composer require neelkanthk/esloader
Usage
Configuration
Demo
The demo code is placed inside the testdata directory. The testdata contains sample csv, json and xml files having 1000 records each.
The configuration for the demo can be modified in config.php file.
To run the demo you need to have an elasticsearch cluster running. Once you have that you just need to run php example.php
to run the demo.
All versions of esloader with dependencies
aws/aws-sdk-php Version ^3.65
league/csv Version ^9.0
salsify/json-streaming-parser Version ^8.0
prewk/xml-string-streamer Version ^0.11.0