PHPackages                             kissge/elastica-friendly-result-set - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kissge/elastica-friendly-result-set

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kissge/elastica-friendly-result-set
===================================

Wraps Elastica's ResultSet objects.

1.2.0(9y ago)0221MITPHPPHP &gt;=5.5

Since Jul 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kissge/ElasticaFriendlyResultSet)[ Packagist](https://packagist.org/packages/kissge/elastica-friendly-result-set)[ RSS](/packages/kissge-elastica-friendly-result-set/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

ElasticaFriendlyResultSet
=========================

[](#elasticafriendlyresultset)

[![Build Status](https://camo.githubusercontent.com/26c07e2f3247d0ddd558416a46bec24aac8ff2d9910b556fab746243d11409a1/68747470733a2f2f7472617669732d63692e6f72672f6b69737367652f456c617374696361467269656e646c79526573756c745365742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kissge/ElasticaFriendlyResultSet)[![Coverage Status](https://camo.githubusercontent.com/a532676acf4f26fbe5c5f585f42ee259748aa7a0aaf2a626bf7083c04d3bc267/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b69737367652f456c617374696361467269656e646c79526573756c745365742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/kissge/ElasticaFriendlyResultSet?branch=master)

Thin but powerful wrapper for [ruflin/Elastica](https://github.com/ruflin/Elastica).

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

[](#installation)

Simply add this library to your project as a dependency:

```
composer require kissge/elastica-friendly-result-set
```

Usage
-----

[](#usage)

Example 1.

```
use Kissge\ElasticaFriendlyResultSet\Aggregations;

$index = $container->get('fos_elastica.index.'); // Symfony assumed, but that's not necessary
$aggs = new Aggregations($index->search($query)->getAggregations());

foreach ($aggs-> as $key => $bucket) {
    do_something($bucket->);
    do_something($bucket->->);
}
```

Example 2.

```
use Kissge\ElasticaFriendlyResultSet\Aggregations;

$aggs = new Aggregations($index->search($query)->getAggregations());
$this->render($view, ['aggs' => $aggs]);
```

```
{% for key, interval in aggs.interval %}

            {{ key }}

            {{ interval.visitors.female }}

            {{ interval.visitors.male }}

            {{ interval.averageScore }}

{% endfor %}
```

Author
------

[](#author)

[Yuto Kisuge](https://github.com/kissge)

License
-------

[](#license)

This library is licensed under the MIT License. See `LICENSE` for the complete license.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

3

Last Release

3624d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4177010?v=4)[Yusuke Kido](/maintainers/kissge)[@kissge](https://github.com/kissge)

---

Top Contributors

[![kissge](https://avatars.githubusercontent.com/u/4177010?v=4)](https://github.com/kissge "kissge (8 commits)")

### Embed Badge

![Health badge](/badges/kissge-elastica-friendly-result-set/health.svg)

```
[![Health](https://phpackages.com/badges/kissge-elastica-friendly-result-set/health.svg)](https://phpackages.com/packages/kissge-elastica-friendly-result-set)
```

###  Alternatives

[lukeraymonddowning/mula

A Laravel package that makes working with money in a secure manner a cinch!

1538.9k](/packages/lukeraymonddowning-mula)

PHPackages © 2026

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