PHPackages                             thelhc/cloud-search-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. thelhc/cloud-search-query

ActiveLibrary[Database &amp; ORM](/categories/database)

thelhc/cloud-search-query
=========================

An ORM-like wrapper for building AWS CloudSearch structured queries

v2.4.1(6y ago)311.9kPHP ~5.6|~7.0|~7.1|~7.2|~7.3

Since Sep 25Compare

[ Source](https://github.com/dieseljobs/cloud-search-query)[ Packagist](https://packagist.org/packages/thelhc/cloud-search-query)[ RSS](/packages/thelhc-cloud-search-query/feed)WikiDiscussions Synced today

READMEChangelog (1)Dependencies (6)Versions (33)Used By (0)

cloud-search-query
==================

[](#cloud-search-query)

An ORM-like wrapper for building AWS CloudSearch structured queries

Installation
------------

[](#installation)

CloudSearchQuery is currently a repository package only. In `composer.json` add:

```
"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/aaronkaz/cloud-search-query.git"
  }
],
"require": {
    "aaron-kaz/cloud-search-query": "dev-master"
},

```

Basic Usage
-----------

[](#basic-usage)

Initialize a query object with a valid CloudSearch full URI endpoint

```
$query = new CloudSearchQuery([
    'endpoint' => 'http://search-yourdomain.us-east-1.cloudsearch.amazonaws.com'
]);

```

You can chain query methods like so

```
$query->phrase('ford')
      ->term('National Equipment', 'seller')
      ->range('year', '1987');

```

use the `get()` method to submit query and retrieve results from AWS. Use property accessors on the returned results object.

```
$results = $query->get();
$matchedDocuments = $results->hits;

```

Search Query Operators and Nested Queries
-----------------------------------------

[](#search-query-operators-and-nested-queries)

You can use the `and`, `or`, and `not` operators to build compound and nested queries.
The corresponding `and()`, `or()`, and `not()` methods expect a closure as their argument. You can chain all available methods as well nest more subqueries inside of closures.

```
$query->or(function($builder) {
          $builder->phrase('ford')
                  ->phrase('truck');
        })

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity69

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~39 days

Recently: every ~92 days

Total

32

Last Release

2353d ago

Major Versions

v1.2.1 → v2.0.02016-11-29

PHP version history (4 changes)v1.1.0PHP &gt;=5.4.0

v2.1.0PHP ~5.6|~7.0

v2.2.7PHP ~5.6|~7.0|~7.1

v2.3.1PHP ~5.6|~7.0|~7.1|~7.2|~7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17786759?v=4)[thelhc](/maintainers/thelhc)[@thelhc](https://github.com/thelhc)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thelhc-cloud-search-query/health.svg)

```
[![Health](https://phpackages.com/badges/thelhc-cloud-search-query/health.svg)](https://phpackages.com/packages/thelhc-cloud-search-query)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
