Download the PHP package elastification/php-client without Composer
On this page you can find all versions of the php package elastification/php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elastification/php-client
More information about elastification/php-client
Files in elastification/php-client
Package php-client
Short Description 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.
License MIT
Homepage http://www.elastification.de
Informations about the package php-client
Elastification/php-client
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
- 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.
Running the unit tests is simple (composer install is reqired):
If you like coder coverage it will be placed in build folder:
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]
The phpunit-integration.xml has defined constants for each testable version.
Run integration tests for v2x versions looks like this:
Requests Examples
How to check if indexExists:
How to check if indexTypeExists: