PHPackages                             psmb/mapreduce - 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. psmb/mapreduce

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

psmb/mapreduce
==============

Map/Reduce FlowQuery operations

v2.0(9y ago)21.4kLGPL-3.0+PHP

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/psmb/Psmb.MapReduce)[ Packagist](https://packagist.org/packages/psmb/mapreduce)[ RSS](/packages/psmb-mapreduce/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Psmb.MapReduce
==============

[](#psmbmapreduce)

This package provides `.map()` and `.reduce()` FlowQuery operations. Could be useful, huh?

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

[](#installation)

`composer require 'psmb/mapreduce:@dev'`

Usage
-----

[](#usage)

### Map

[](#map)

Takes all items in current FlowQuery context, and transforms each value with given Eel operation. There is a context variable `value` available, with a value of a current node.

E.g. this would give you an array of identifiers of all child nodes of a given node:

```
${q(node).children().map('value.identifier')}

```

See: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Array/map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)

### Reduce

[](#reduce)

Takes an Eel Expression as a first argument and initial values as the second. Injects `previousValue`, `currentValue`, `index` and `array` context variables.

E.g. imagine you have a collection of Order nodes, where each node has a price property. Now let's try to get a total price for all of the give nodes:

```
${q(node).children('orders').reduce('previousValue + currentValue.properties.price', 0)

```

See: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Array/Reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3436d ago

Major Versions

v1.0 → v2.02017-02-01

### 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 (73 commits)")

---

Tags

neoscms

### Embed Badge

![Health badge](/badges/psmb-mapreduce/health.svg)

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

###  Alternatives

[sitegeist/kaleidoscope

Responsive-images for Neos

29364.3k11](/packages/sitegeist-kaleidoscope)[kaufmanndigital/gdpr-cookieconsent

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

2541.8k](/packages/kaufmanndigital-gdpr-cookieconsent)[neos/seo

SEO configuration and tools for Neos

131.0M28](/packages/neos-seo)[techdivision/ckstyles

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

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

Manage vocabularies and taxonomies as separate node-hierarchy.

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

A plugin for Neos CMS which provides a colorpicker editor

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

PHPackages © 2026

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