syndesi / elastic-entity-manager
Provides an entity manager for Elastic Search
0.3.0
2026-11-29 19:58 UTC
Requires
- php: ^8.3
- elasticsearch/elasticsearch: ^8.17
- psr/event-dispatcher: ^1.0
- psr/log: ^3.0
- syndesi/elastic-data-structures: ^0.2
Requires (Dev)
- crell/tukio: ^2.0
- friendsofphp/php-cs-fixer: ^3.48
- infection/infection: ^0.29.8
- monolog/monolog: ^3.2
- phpbench/phpbench: ^1.2
- phpspec/prophecy: ^1.18
- phpspec/prophecy-phpunit: ^2.1
- phpstan/phpstan: ^2.1
- phpunit/php-code-coverage: ^11
- phpunit/phpunit: ^11
- selective/container: ^1.2
- vimeo/psalm: ^6.2
- vlucas/phpdotenv: ^5.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-29 20:03:58 UTC
README
Library containing classes to make working with Elastic easier. Structure is kept close to neo4j-php/cypher-entity-manager.
Requirements
- PHP 8.1 or newer and the
elasticsearch/elasticsearchclient. - Elasticsearch must allow inline painless scripts (the default). Elasticsearch can only set a field to
nullin a partial document update, not delete it, somerge()removes properties which arenullwith a second, scripted update request. Clusters which disable inline scripts, e.g. withscript.allowed_types: storedorscript.allowed_types: none, are not supported:merge()fails for documents which containnullproperties.
Null properties
Properties which are null are never stored. create() skips them and merge() removes them from the stored document.
The removal is a separate request after the partial update, so it is not atomic with it.