PHPackages                             jotaelesalinas/php-simple-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. jotaelesalinas/php-simple-mapreduce

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

jotaelesalinas/php-simple-mapreduce
===================================

A simple in-memory map/reduce engine for PHP iterables, without workers or configuration.

v2.0.0(3y ago)1105[1 PRs](https://github.com/jotaelesalinas/php-simple-mapreduce/pulls)MITPHPPHP &gt;=8.0CI failing

Since Aug 21Pushed today3 watchersCompare

[ Source](https://github.com/jotaelesalinas/php-simple-mapreduce)[ Packagist](https://packagist.org/packages/jotaelesalinas/php-simple-mapreduce)[ Docs](https://github.com/jotaelesalinas/php-mapreduce)[ RSS](/packages/jotaelesalinas-php-simple-mapreduce/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

php-simple-mapreduce
====================

[](#php-simple-mapreduce)

\[!IMPORTANT\] This is a breaking v2 release and is not compatible with the old `jotaelesalinas/php-mapreduce` package. The package name, namespace, and public API have changed.

[![Latest Version on Packagist](https://camo.githubusercontent.com/ff7f66fc6165fbef4b21c0862e9150d492ed1e1ae26be5bec170b218085d44cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f7461656c6573616c696e61732f7068702d73696d706c652d6d61707265647563652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jotaelesalinas/php-simple-mapreduce)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)[![CI](https://camo.githubusercontent.com/e4b74c21e66b8d242a369a73f7e254da95134602c066a6b11be7f3be7817a82f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f7461656c6573616c696e61732f7068702d73696d706c652d6d61707265647563652f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/jotaelesalinas/php-simple-mapreduce/actions/workflows/ci.yml)

Simple in-memory map/reduce for PHP iterables.

This library is for local data processing when you want a small, readable API and do not need distributed workers, external storage, or tuning knobs. It is the lighter counterpart to heavier MapReduce-style systems.

Why this exists
---------------

[](#why-this-exists)

- Works with any `iterable`, including arrays, generators, and custom iterators.
- Keeps all work inside one PHP process.
- Exposes a small fluent API that is easy to test.
- Lets you observe progress without coupling to a logger.

Install
-------

[](#install)

```
composer require jotaelesalinas/php-simple-mapreduce
```

Quickstart
----------

[](#quickstart)

```
