Download the PHP package elastification/php-client-bundle without Composer

On this page you can find all versions of the php package elastification/php-client-bundle. 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 php-client-bundle

Elastification Php Client Bundle

Build Status


Config

Here is the configuration section for using the bundle

Composer

Required in composer.json

You have choose the right package for your transport. If you do not have installed thrift you should use guzzle

For Thrift transport

Don't forget to run composer update after you finished your composer.json

AppKernel

In your app/config/AppHernel.php file you should activate the bundle by adding it to the array

$bundles[] = new Elastification\Bundle\ElastificationPhpClientBundle\ElastificationPhpClientBundle();

App Config

In your app/config.yml or environment based you can add params (full config example):


DIC

The registered DIC service id for the client is elastification_php_client

Serializers

Native Serializer Service Id: elastification_php_client.serializer.native

Jms Serializer Search Service Id: elastification_php_client.serializer.jms.search

Jms Serializer Document Service Id: elastification_php_client.serializer.jms.document

Repositories

Document Repository Serivce Id: elastification_php_client.repository.document

Search Repository Serivce Id: elastification_php_client.repository.search

Index Repository Serivce Id: elastification_php_client.repository.index

Cat Repository Serivce Id: elastification_php_client.repository.cat

Tagged request

If you want to register request services you can tag them with: elastification_php_client.request


Versions


HowTo


Examples

For all examples should create some sample data in your elasticsearch.

Example for Search Repository

Performs a simple search. This code is an example that can be performed within an action of a controller.

Example for Document Repository

Gets a single document by id. This code is an example that can be performed within an action of a controller.

Examples for Index Repository

Checks if an index exists This code is an example that can be performed within an action of a controller.

Creates an index This code is an example that can be performed within an action of a controller.`

Example for simple search query with native serializer and no preconfigured requests

This code is an example that can be performed within an action of a controller.

Example for tagging request services and using the request manager

Here is an example of a tagged request as service. The id parameter is optional. If this is not set, the request service id will be used. If the config parameter replace_version_of_tagged_requests is set to true. All registered requests will be parsed and set to the configured version.

Using a registered request and perform a request. This code is an example that can be performed within an action of a controller.


ToDo


All versions of php-client-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
symfony/framework-bundle Version ~2.3|~3.0
symfony/yaml Version ~2.3|~3.0
elastification/php-client Version >=0.9,<1.0
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 elastification/php-client-bundle contains the following files

Loading the files please wait ....