2017 © Pedro Peláez
 

library php-client

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

image

elastification/php-client

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  • Wednesday, March 30, 2016
  • by dawen
  • Repository
  • 4 Watchers
  • 7 Stars
  • 8,091 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

Elastification/php-client

Build Status Scrutinizer Code Quality Code Coverage Dependency Status, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

SensioLabsInsight, (*3)


ToDo

  • [ ] Helper for Version response compare. (Symfony/Console)
  • [ ] singular _alias Put/Post/delete/head (v1,v2?)
  • [ ] GetFieldMappingRequest (seems to be only in v1 and v2)
  • [x] cat api (v1, v2, check if v90)
  • [x] repository for cat (implement version check 1 and 2 only)
  • [ ] analyze (v1, v2, check if v90)
  • [ ] snapshot (v1, v2, check if v90)
  • [ ] index recovery (v1, v2, check if v90)
  • [ ] Think about an array of clients or a decision manager for get the right client (maybe voter pattern?)
  • [ ] Write documentation
  • [ ] Create Github Pages
  • [ ] Check all requests and write down missing here

Changes from Version 1x to 2x, (*4)

  • NodeInfo does not have status in response
  • DeleteByQuery is removed
  • DeleteMapping is removed
  • Index/IndexStats is removed (replaced by index stats)
  • Bulk/BulkInsertRequest existing documents having new a subobject under item['error'] response
  • Bulk/BulkUpdateRequest existing documents having new a subobject under item['error'] response

Testing

The tests are devided into unit tests and integration tests., (*5)

Running the unit tests is simple (composer install is reqired):, (*6)

    bin/phpunit tests/Unit

If you like coder coverage it will be placed in build folder:, (*7)

    bin/phpunit --coverage-html=build tests/Unit

There are also integration test. The subfolders holding version tests. There is a vagrant repository where you can bring all wanted/needed machine alive. [Link is missing], (*8)

The phpunit-integration.xml has defined constants for each testable version., (*9)

Run integration tests for v2x versions looks like this:, (*10)

    bin/phpunit --coverage-html=build -c phpunit-integration.xml tests/Integration/Request/V2x

Requests Examples

How to check if indexExists:, (*11)

$indexExistsRequest = new IndexExistsRequest('index', null, $this->serializer);

try {
    $client->send($indexExistsRequest);
    return true;
} catch(ClientException $exception) {
    return false;
}

How to check if indexTypeExists:, (*12)

$indexTypeExistsRequest = new IndexTypeExistsRequest('index', 'type', $this->serializer);

try {
    $client->send($indexTypeExistsRequest);
    return true;
} catch(ClientException $exception) {
    return false;
}

The Versions

30/03 2016

dev-master

9999999-dev http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

30/03 2016

0.14.2

0.14.2.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

21/01 2016

0.14.1

0.14.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

13/01 2016

0.14.0

0.14.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

06/01 2016

0.13.0

0.13.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

07/12 2015

0.12.0

0.12.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

25/11 2015

0.11.1

0.11.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

19/11 2015

0.11.0

0.11.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

25/09 2015

0.10.1

0.10.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

17/09 2015

0.10.0

0.10.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

19/08 2015

0.9.0

0.9.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

29/06 2015

0.8.2

0.8.2.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

19/03 2015

0.8.1

0.8.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

28/01 2015

0.8.0

0.8.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

27/01 2015

0.7.1

0.7.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

27/01 2015

0.7.0

0.7.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

22/01 2015

0.6.2

0.6.2.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

22/01 2015

0.6.1

0.6.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

22/01 2015

0.6.0

0.6.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

20/01 2015

0.5.0

0.5.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

19/01 2015

0.4.5

0.4.5.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

19/01 2015

0.4.3

0.4.3.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

12/01 2015

0.4.2

0.4.2.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

12/01 2015

0.4.1

0.4.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

12/01 2015

0.4.0

0.4.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

09/01 2015

0.3.0

0.3.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

08/01 2015

0.2.1

0.2.1.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

08/01 2015

0.2.0

0.2.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

18/12 2014

0.1.0

0.1.0.0 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

18/12 2014

dev-scrutinizer-patch-2

dev-scrutinizer-patch-2 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift

18/12 2014

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 http://www.elastification.de

The elastification php client aims to be a very flexible and well performing client to elasticsearch. It supports multiple transports and serializers to maximize it's flexibility.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

elasticsearch http nosql thrift