PHPackages                             spencer-mortensen/parallel-processor - 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. spencer-mortensen/parallel-processor

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

spencer-mortensen/parallel-processor
====================================

Run many pieces of code at once, and act on the results as they arrive

3.1.2(8y ago)0107LGPL-3.0-or-laterPHPPHP &gt;=5.3.0

Since Aug 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Spencer-Mortensen/parallel-processor)[ Packagist](https://packagist.org/packages/spencer-mortensen/parallel-processor)[ Docs](https://github.com/spencer-mortensen/parallel-processor)[ RSS](/packages/spencer-mortensen-parallel-processor/feed)WikiDiscussions master Synced 2w ago

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

parallel-processor
==================

[](#parallel-processor)

The "parallel-processor" is a PHP library that lets you run many pieces of code at once--and the act on the results as they arrive.

Here's an example:

```
$processor = new ForkProcessor();

$t0 = microtime(true);

$processor->start(new SleepJob(2, $results[]));
$processor->start(new SleepJob(3, $results[]));
$processor->start(new SleepJob(1, $results[]));

$processor->finish();

$t1 = microtime(true);

echo implode("\n", $results), "\n";
echo "\nTotal time: ", $t1 - $t0, " seconds\n";
```

Here's the output:

```
Slept for 2 seconds.
Slept for 3 seconds.
Slept for 1 seconds.

Total time: 3.0033020973206 seconds

```

You can include this library through Composer:

> composer require [spencer-mortensen/parallel-processor](https://packagist.org/packages/spencer-mortensen/parallel-processor):~2.0

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Recently: every ~55 days

Total

9

Last Release

2925d ago

Major Versions

1.0.1 → 2.0.02017-09-08

2.1.0 → 3.0.02018-01-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab3b16628454dcd5005930f417ba53fc7bc7eac0f7db768d25eef3bf30594f49?d=identicon)[spencermortensen](/maintainers/spencermortensen)

---

Top Contributors

[![spencer-mortensen](https://avatars.githubusercontent.com/u/2017476?v=4)](https://github.com/spencer-mortensen "spencer-mortensen (23 commits)")

---

Tags

phpasynchronousprocessingparallelmulti-threaded

### Embed Badge

![Health badge](/badges/spencer-mortensen-parallel-processor/health.svg)

```
[![Health](https://phpackages.com/badges/spencer-mortensen-parallel-processor/health.svg)](https://phpackages.com/packages/spencer-mortensen-parallel-processor)
```

###  Alternatives

[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)

PHPackages © 2026

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