PHPackages                             phoogkamer/cloudsearch-wrapper - 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. [API Development](/categories/api)
4. /
5. phoogkamer/cloudsearch-wrapper

AbandonedArchivedLibrary[API Development](/categories/api)

phoogkamer/cloudsearch-wrapper
==============================

1.0.0(9y ago)221.4k2MITPHPPHP &gt;=5.4.0

Since Jan 30Pushed 6y ago6 watchersCompare

[ Source](https://github.com/phoogkamer/cloudsearch-wrapper)[ Packagist](https://packagist.org/packages/phoogkamer/cloudsearch-wrapper)[ RSS](/packages/phoogkamer-cloudsearch-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

CloudSearch Wrapper
===================

[](#cloudsearch-wrapper)

A wrapper for the AWS SDK regarding CloudSearch. Provides a nicer, less error prone interface than the Amazon SDK for CloudSearch. Version 0.3.0 should be considered stable. I'm just not sure if the featureset is complete enough for a major version change.

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

[](#installation)

```
composer require phoogkamer/cloudsearch-wrapper:0.3.*

```

Example usage
-------------

[](#example-usage)

Below is a simple search example.

```
$client = new CloudSearchClient($endpoint, $key, $secret);

$query = new CloudSearchStructuredQuery();

//Adds a field (id:1)
$query->addField('id', 1);

//Will give max 15 results
$query->setSize(15);

//Currently $result is still the standard AWS SDK result
$result = $client->search($query);
```

You will most probably need something more advanced, like with And and Or statements. This is done like so:

```
$query->addAnd(function(CloudSearchStructuredQuery $query)
{
    $query->addOr(function(CloudSearchStructuredQuery $query)
    {
        //Add string by setting the second parameter true
        $query->addField('title', 'Forged Alliance', true);

        $query->addField('title', 'Supreme Commander', true);
    });

    $query->addOr(function(CloudSearchStructuredQuery $query)
    {
        $query->addField('id', 1);

        //Gets everything within a range from 2 to 5
        $query->addRangeField('id', 2, 5);
    });
});
```

Note that it's easy to nest in an elegant way.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% of commits — single point of failure

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 ~55 days

Recently: every ~132 days

Total

11

Last Release

3560d ago

Major Versions

0.4.0 → 1.0.02016-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/66799a80d7f6bf4e0d024c1e06e66a3ec14495e2892c0861be3d060a0a0ec9e6?d=identicon)[phoogkamer](/maintainers/phoogkamer)

---

Top Contributors

[![patrickhoogkamer](https://avatars.githubusercontent.com/u/1894838?v=4)](https://github.com/patrickhoogkamer "patrickhoogkamer (77 commits)")[![tomasvanrijsse](https://avatars.githubusercontent.com/u/1403466?v=4)](https://github.com/tomasvanrijsse "tomasvanrijsse (2 commits)")[![diyriver](https://avatars.githubusercontent.com/u/1901331?v=4)](https://github.com/diyriver "diyriver (1 commits)")

---

Tags

amazonawscloudsearch

### Embed Badge

![Health badge](/badges/phoogkamer-cloudsearch-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/phoogkamer-cloudsearch-wrapper/health.svg)](https://phpackages.com/packages/phoogkamer-cloudsearch-wrapper)
```

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M74](/packages/aws-aws-sdk-php-laravel)[thephalcons/amazon-webservices-bundle

A Symfony2 Bundle for interfacing with Amazon Web Services (AWS)

110224.7k](/packages/thephalcons-amazon-webservices-bundle)[async-aws/lambda

Lambda client, part of the AWS SDK provided by AsyncAws.

194.5M10](/packages/async-aws-lambda)[okamos/php-ses

An Amazon SES api for PHP. Support signature version 4

2220.8k](/packages/okamos-php-ses)[cion/laravel-text-to-speech

This package creates a shared API to easily use Text to Speech functionalities amongst different TTS providers.

4228.3k](/packages/cion-laravel-text-to-speech)

PHPackages © 2026

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