{"repo":"bonu-dev/php-elasticsearch-builder","free":true,"listed":false,"github":"https://github.com/bonu-dev/php-elasticsearch-builder","clone":"git clone https://github.com/bonu-dev/php-elasticsearch-builder.git","description":"PHP Query Builder for Elasticsearch","language":"PHP","stars":66,"topics":["elasticsearch","php","builder","query"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"PHP Query Builder for Elasticsearch --- A clean, fluent, immutable, and type-safe query builder for Elasticsearch - built from the ground up to work seamlessly with the official Elasticsearch PHP client. No extra dependencies. No magic. Just expressive, readable, and maintainable Elasticsearch queries in PHP. Features - Fully fluent & chainable API - Zero dependencies beyond the official Elasticsearch PHP SDK - Easy creation of reusable composite queries - 100% type-hinted and IDE-friendly Requirements - PHP ≥ 8.4 Installation Using query builder The Bonu\\ElasticsearchBuilder\\QueryBuilder class provides a fluent interface for building Elasticsearch queries. Constructor of this class accepts a single argument - name of the index to query, which may be used for searching in specific index. Out of box it supports: - Chaining queries using query() method - Chaining aggregations using aggregation() method - Configuring pagination of results using from() and size() methods Queries [!CAUTION] Queries are immutable. This package comes with a set of ready-to-use queries which is documented below. It is also possible to create reusable composite queries using abstract Bonu\\ElasticsearchBuilder\\Query\\CompositeQuery class. Example of composite query: TermQuery https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query TermsQuery https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query ExistsQuery https://www.elastic.co/docs/reference","default_branch":null,"files":null,"tree":[],"storefront":"/r/bonu-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bonu-dev/php-elasticsearch-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}