php-elasticsearch-builder
Fluent, type-safe Elasticsearch query building for PHP
All Skills in This Repository (3)
Pure Emerald Level Indicatorscreate-sort
Create Elasticsearch Sort classes with PHPUnit tests and PHPStan checks.
create-query
Generate Elasticsearch Query classes, exceptions, and tests for PHP projects.
create-aggregation
Generate Elasticsearch aggregation classes, exceptions, and PHPUnit tests for PHP projects.
Frequently Asked Questions
FAQPage SchemaHow to install php-elasticsearch-builder?▼
Run `npx skills add bonu-dev/php-elasticsearch-builder --all -g -y` in your terminal to install all skills in this suite globally.
How to build Elasticsearch queries in PHP?▼
Use the fluent QueryBuilder class to chain queries, aggregations, sorts, and pagination, then pass the built array directly to the official Elasticsearch PHP client.
Can AI add new Elasticsearch query types to this project?▼
Yes. The create-query, create-aggregation, and create-sort skills give your agent step-by-step templates, conventions, and test patterns for adding new classes that pass CI.
Does it work with the official Elasticsearch PHP client?▼
Yes. The builder outputs plain arrays designed to be passed directly into the official elasticsearch/elasticsearch PHP client with zero extra dependencies.
What PHP version is required?▼
The library requires PHP 8.4 or higher and has no production dependencies beyond PHP itself.
Related Repositories in Software Engineering
View All in Software Engineering→openclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core