PHPackages                             dimaip/groupby - 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. dimaip/groupby

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

dimaip/groupby
==============

FlowQuery groupBy operation to group arrays by EEL discriminator

6.0(3y ago)67.2k↓78.6%4[1 issues](https://github.com/dimaip/Dimaip.GroupBy/issues)GPL-3.0+PHP

Since Sep 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/dimaip/Dimaip.GroupBy)[ Packagist](https://packagist.org/packages/dimaip/groupby)[ RSS](/packages/dimaip-groupby/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

Dimaip.GroupBy
==============

[](#dimaipgroupby)

FlowQuery groupBy operation to group arrays by EEL discriminator

Once upon a time I had a list of persons nodes, and I needed to group them by first letter. So I decided there should be a generic way to group array of nodes into subgroups, based on an EEL expression... And here it is!

TL;DR
-----

[](#tldr)

Install: `composer require dimaip/groupby`

Use:

```
groupedNodesByFirstLetterOfLastName = ${q(nodes).groupBy('String.substring(node.properties.lastName, 0, 1)')}

```

Full example
------------

[](#full-example)

Once you have grouped the nodes, you can render them any way you like: with Fluid (yikes!) or with Fusion (yay!).

```
prototype(Name.Space:GroupedList) < prototype(TYPO3.TypoScript:Collection) {
	@process.tmpl = ${'' + value + ''}
	@context.nodes = ${q(site).find('[instanceof Name.Space:Person]')}
	collection = ${nodes.groupBy('String.substring(node.properties.lastName, 0, 1)')}
	itemName = 'nodes'
	itemKey = 'firstLetter'
	itemRenderer = TYPO3.TypoScript:Collection {
		@process.tmpl = ${'' + firstLetter + '' + value + ''}
		collection = ${nodes}
		itemName = 'node'
		itemRenderer = ${'' + node.properties.firstName + ' ' + node.properties.lastName + ''}
	}
}

```

In a similar way you can group nodes based on a very complex EEL expressions, let your imagination fly!

Credit
------

[](#credit)

Initial development sponsored by Stefan Johänntgen

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 81% 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 ~313 days

Recently: every ~516 days

Total

8

Last Release

1376d ago

Major Versions

v1.0.1 → v2.02017-02-01

v2.0 → v3.02018-10-04

v3.0 → v4.02020-12-16

v4.0 → v5.02021-03-17

v5.0 → 6.02022-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e7861363bc4d9a01d804fb1823366c3e59f339542e3a4ea89f7cea7b0ea91af?d=identicon)[dimaip](/maintainers/dimaip)

---

Top Contributors

[![dimaip](https://avatars.githubusercontent.com/u/837032?v=4)](https://github.com/dimaip "dimaip (85 commits)")[![jobee](https://avatars.githubusercontent.com/u/5636715?v=4)](https://github.com/jobee "jobee (15 commits)")[![vertexvaar](https://avatars.githubusercontent.com/u/5594393?v=4)](https://github.com/vertexvaar "vertexvaar (4 commits)")[![paavo](https://avatars.githubusercontent.com/u/1118783?v=4)](https://github.com/paavo "paavo (1 commits)")

---

Tags

neoscms

### Embed Badge

![Health badge](/badges/dimaip-groupby/health.svg)

```
[![Health](https://phpackages.com/badges/dimaip-groupby/health.svg)](https://phpackages.com/packages/dimaip-groupby)
```

###  Alternatives

[neos/seo

SEO configuration and tools for Neos

141.0M32](/packages/neos-seo)[sitegeist/kaleidoscope

Responsive-images for Neos

29370.3k12](/packages/sitegeist-kaleidoscope)[kaufmanndigital/gdpr-cookieconsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.

2542.4k](/packages/kaufmanndigital-gdpr-cookieconsent)[techdivision/ckstyles

Neos package which enables you adding your custom style classes for the CkEditor with a simple Yaml configuration

21179.5k](/packages/techdivision-ckstyles)[sitegeist/taxonomy

Manage vocabularies and taxonomies as separate node-hierarchy.

1595.1k1](/packages/sitegeist-taxonomy)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

14104.7k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

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