PHPackages                             eaglewu/fork-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. eaglewu/fork-helper

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

eaglewu/fork-helper
===================

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

2.0.1(9y ago)041[1 PRs](https://github.com/eaglewu/fork-helper/pulls)Apache-2.0PHPPHP ^7.0

Since Jun 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/eaglewu/fork-helper)[ Packagist](https://packagist.org/packages/eaglewu/fork-helper)[ Docs](https://github.com/eaglewu/fork-helper)[ RSS](/packages/eaglewu-fork-helper/feed)WikiDiscussions master Synced 4w ago

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

fork-helper
===========

[](#fork-helper)

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

Full documentation is available at
PHPDoc API documentation is also available at [http://duncan3dc.github.io/fork-helper/api/](http://duncan3dc.github.io/fork-helper/api/namespaces/duncan3dc.Forker.html)

[![Build Status](https://camo.githubusercontent.com/2000322e3bdd0eb01d8faeae79438ab0436df274234e4be72d2096ed8945138e/68747470733a2f2f7472617669732d63692e6f72672f64756e63616e3364632f666f726b2d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/duncan3dc/fork-helper)[![Latest Stable Version](https://camo.githubusercontent.com/34371e14b5076513bdd516c8f146d2c8456559e9f764b0e36f6fcc7985dffe97/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f666f726b2d68656c7065722f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/fork-helper)

Quick Example
-------------

[](#quick-example)

Run some code asynchronously:

```
$fork = new \duncan3dc\Forker\Fork;

$fork->call(function () {
    for ($i = 1; $i call(function () {
    for ($i = 1; $i < 3; $i++) {
        echo "Process B - " . $i . "\n";
        sleep(1);
    }
});

sleep(1);
echo "Waiting for the threads to finish...\n";
$fork->wait();
echo "End\n";
```

*Read more at *

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since version 2.0.0

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](https//github.com/duncan3dc/fork-helper/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% 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 ~111 days

Recently: every ~196 days

Total

9

Last Release

3511d ago

Major Versions

1.1.5 → 2.0.02016-10-16

PHP version history (2 changes)1.0.1PHP &gt;=5.4.0

2.0.0PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (43 commits)")[![wudi](https://avatars.githubusercontent.com/u/3753615?v=4)](https://github.com/wudi "wudi (3 commits)")[![AndreySlashman](https://avatars.githubusercontent.com/u/7662900?v=4)](https://github.com/AndreySlashman "AndreySlashman (1 commits)")

---

Tags

multi-threadingprocessforkcontrolpcntl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eaglewu-fork-helper/health.svg)

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

###  Alternatives

[duncan3dc/fork-helper

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

73566.2k4](/packages/duncan3dc-fork-helper)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34185.8M150](/packages/react-child-process)[arara/process

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

16862.4k2](/packages/arara-process)[spatie/fork

A lightweight solution for running code concurrently in PHP

1.0k3.0M61](/packages/spatie-fork)[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2982.0M12](/packages/cocur-background-process)[kartik-v/yii2-datecontrol

Date control module allowing separation of formats for View and Model for Yii Framework 2.0

551.5M37](/packages/kartik-v-yii2-datecontrol)

PHPackages © 2026

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