PHPackages                             bettergist/concurrency-helper - 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. bettergist/concurrency-helper

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

bettergist/concurrency-helper
=============================

A super simple way to concurrently run many PHP instances.

v1.0.0(5y ago)78MITPHPPHP &gt;=7.2.5

Since Jan 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bettergistco/ConcurrencyHelper)[ Packagist](https://packagist.org/packages/bettergist/concurrency-helper)[ Docs](https://github.com/hopeseekr/ConcurrencyHelper)[ RSS](/packages/bettergist-concurrency-helper/feed)WikiDiscussions master Synced 1mo ago

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

ConcurrencyHelper
=================

[](#concurrencyhelper)

ConcurrencyHelper is a library for easily and efficiently running any callable via multiple parallel PHP instances.

It's aim is to substantially simplify massively parallelized operations.

Notable use cases include the [Bettergist Collector project](https://gitlab.com/hopeseekr/bettergist-collector), which uses ConcurrencyHelper to massively parallize the downloads of every [www.Packagist.org](http://www.Packagist.org) package, using 50-200 PHP processes.

**This library requires the ext-pcntl extension.**

Usage
-----

[](#usage)

```
```php
$myParallelizedFunction = function (int $childNumber, array $packages, $optionalExtraParameter) {
echo "Thread $childNumber: " . implode(', ', $packages) . " of $optionalExtraParameter\n";

    sleep($childNumber * 1);

    echo "Finished Thread $childNumber.\n";
};

$states = [
'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado',
'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho',
];

$runner = new BettergistCollective\ConcurrencyHelper\ConcurrencyHelper();
$runner->concurrentlyRun($states, 6, $myParallelizedFunction, [count($states)]);
```

```

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

[](#installation)

Via Composer

```
$ composer require phpexperts/conciseuuid
```

**This library requires the ext-pcntl extension.**

Change log
----------

[](#change-log)

Please see the [changelog](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please take a look at [contributing.md](contributing.md) if you want to make improvements.

Credits
-------

[](#credits)

- Theodore R. Smith

License
-------

[](#license)

MIT license. Please see the [license file](license.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f3a2dd16766f6b03c330e65aaca9dfb97f1bbbb41c5e2af5681f58f670b7917?d=identicon)[hopeseekr](/maintainers/hopeseekr)

---

Top Contributors

[![hopeseekr](https://avatars.githubusercontent.com/u/1125541?v=4)](https://github.com/hopeseekr "hopeseekr (1 commits)")

---

Tags

parallelfastforkmultithreadedmulti-threaded

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bettergist-concurrency-helper/health.svg)

```
[![Health](https://phpackages.com/badges/bettergist-concurrency-helper/health.svg)](https://phpackages.com/packages/bettergist-concurrency-helper)
```

###  Alternatives

[spatie/fork

A lightweight solution for running code concurrently in PHP

1.0k2.6M39](/packages/spatie-fork)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[veewee/composer-run-parallel

Run composer tasks in parallel

91748.2k13](/packages/veewee-composer-run-parallel)[duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

73548.0k4](/packages/duncan3dc-fork-helper)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[recca0120/laravel-parallel

64116.7k](/packages/recca0120-laravel-parallel)

PHPackages © 2026

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