zp / supple
Document indexation and migration tool for Elasticsearch
1.1.0
2021-07-09 07:58 UTC
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- doctrine/annotations: ^1.11
- elasticsearch/elasticsearch: ^6.5|^7.0
- jfcherng/php-diff: ^6.9
- jms/serializer: ^3.11
- laminas/laminas-code: ^4.4
Requires (Dev)
- monolog/monolog: ^2.2
- phpstan/phpstan: ^0.12.77
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.5
- symfony/console: ^5.2
Suggests
- symfony/console: For using the migration command
README
Supple is a framework agnostic document indexation and migration tool for Elasticsearch.
Installation
composer require zp/supple
Usage
See examples/example.php
.
Annotations
use Zp\Supple\Annotation as Elastic;
@Elastic\Index
TODO
@Elastic\IndexTemplate
TODO
@Elastic\IndexAnalysis
TODO
@Elastic\IndexMapping
TODO
@Elastic\IndexSetting
TODO
@Elastic\ID
TODO
@Elastic\Mapping
TODO
@Elastic\EmbeddedMapping
TODO
@Elastic\Ignore
TODO
JMSSerializer
Under the hood, for mapping document to JSON used library JMSSerializer, so you could use their annotations.