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

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

tapat4n/fork
============

Fork manager for php

0.0.1(3y ago)05MITPHPPHP &gt;=8.1

Since Aug 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tapat4n/fork)[ Packagist](https://packagist.org/packages/tapat4n/fork)[ RSS](/packages/tapat4n-fork/feed)WikiDiscussions master Synced 1mo ago

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

Fork manager
============

[](#fork-manager)

[![Latest Stable Version](https://camo.githubusercontent.com/a31b1d9b37bf323abbb6d122d7040b27821ad20f10352f2a204429be9c14a4eb/687474703a2f2f706f7365722e707567782e6f72672f7461706174346e2f666f726b2f76)](https://packagist.org/packages/tapat4n/fork)[![Total Downloads](https://camo.githubusercontent.com/ac1516e4279d8dc2be5e4e5b33279ae93f08de880c901a698745b006d2176c6c/687474703a2f2f706f7365722e707567782e6f72672f7461706174346e2f666f726b2f646f776e6c6f616473)](https://packagist.org/packages/tapat4n/fork)[![Latest Unstable Version](https://camo.githubusercontent.com/34c2c27afc7e55d6b7b0bba5a36e9999e4ed5c9a9c0c435789ff411f081b0187/687474703a2f2f706f7365722e707567782e6f72672f7461706174346e2f666f726b2f762f756e737461626c65)](https://packagist.org/packages/tapat4n/fork)[![License](https://camo.githubusercontent.com/4af9e3cc1422824e9168785dde41de2ac2b9a5d9488a29589d55346f192616b0/687474703a2f2f706f7365722e707567782e6f72672f7461706174346e2f666f726b2f6c6963656e7365)](https://packagist.org/packages/tapat4n/fork)[![PHP Version Require](https://camo.githubusercontent.com/6f1a93a1f48edde99353a9eb04af1470e803ff28cccdf466b7d98d4ec64a698a/687474703a2f2f706f7365722e707567782e6f72672f7461706174346e2f666f726b2f726571756972652f706870)](https://packagist.org/packages/tapat4n/fork)[![Build Status](https://camo.githubusercontent.com/912df7cb1b6fb470d99bb2820b1109974fe6757dd26c44c9ad64f384113b7cdb/68747470733a2f2f7472617669732d63692e6f72672f7461706174346e2f666f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tapat4n/fork)

What is it?
-----------

[](#what-is-it)

PHP library for forking process and multitasking

- [Installation](#installation)
- [Example usage](#example-usage)

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

[](#installation)

PHP 8.1 is required

The [pcntl](http://php.net/pcntl) extension is required.

The [posix](http://php.net/posix) extension is required.

```
$ composer require tapat4n/fork
```

Example usage
-------------

[](#example-usage)

```
use Tapat4n\Fork\ForkManager;
use Tapat4n\Fork\Message\MessageInterface;

$manager = new ForkManager();
$i = 0;

$manager->addWorker(function (MessageInterface $message) use ($i) {
    $message->set(++$i);
});

$manager->addWorker(function (MessageInterface $message) use ($i) {
    $content = '';
    while ($i < 1000) {
        $content .= $i;
        $i++;
    }
    $message->set($content);
}, true); // set true to detach process

$manager->dispatch();

var_dump($manager->getMessages());
var_dump($manager->getMessagesContent());
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/909bb9d0cfc989d6f854a723942386f3c9a6e48e4fceba529ca81977afe3fedf?d=identicon)[tapat4n](/maintainers/tapat4n)

---

Top Contributors

[![tapat4n](https://avatars.githubusercontent.com/u/33717595?v=4)](https://github.com/tapat4n "tapat4n (37 commits)")

---

Tags

phplibraryprocessforkThreadpcntlshmop

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)[symfony-bundles/fork

SymfonyBundles Fork Library

178.0k](/packages/symfony-bundles-fork)[lifo/php-ipc

Simple PHP Inter Process Communication (IPC) library

285.5k](/packages/lifo-php-ipc)

PHPackages © 2026

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