Download the PHP package legalthings/elasticsearch-php without Composer

On this page you can find all versions of the php package legalthings/elasticsearch-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package elasticsearch-php

Legal Things - Elasticsearch PHP

This library aims to provide you with a simplified interface to use Elasticsearch. Internally it uses the original elastic/elasticsearch-php library.

The client of the original library is exposed and can be used if needed.

Requirements

Required PHP extensions are marked by composer

Installation

The library can be installed using composer.

composer require legalthings/elasticsearch-php

Client

To create a client you need to pass configuration options. If no options are given, localhost:9200 is automatically used as the host.

You can use the original elastic/elasticsearch-php client directly if you need its functionality.

Configuration

Configuration is passed to Elasticsearch's configuration builder, which means you can provide any configuration options that it accepts. See this link for more information.

Add ["quiet" => true] to the config if you want to add custom keys to the configuration. If quiet isn't provided, Elasticsearch will throw an exception if it encounters keys unrelated to the Elasticsearch client.

Search

The search() method is used to perform common, basic search operations in Elasticsearch.

The method automatically transforms filters and text searches to the correct Elasticsearch equivalent, so you don't have to do that manually.

Index

The index() method is used to perform common, basic index operations in Elasticsearch

Update

The update() method is used to perform common, basic update operations in Elasticsearch, which partially updates a document

Get

The get() method is used to perform common, basic get operations in Elasticsearch.

Delete

The delete() method is used to perform common, basic delete operations in Elasticsearch.

Filters

This library makes it easy to filter for data in Elasicsearch, because you don't have to transform the filter in a specific structure. See the tests for more examples. See jasny filter for more information about the syntax.

Alternatively the filter can be composed using a fluent interface. This will output the same query as the example above.

Mapping

The library comes with predefined Elasticsearch mappings that you can use. See this file for more maps.


All versions of elasticsearch-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
elasticsearch/elasticsearch Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package legalthings/elasticsearch-php contains the following files

Loading the files please wait ....