PHPackages                             jenner/react-multi-process - 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. jenner/react-multi-process

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

jenner/react-multi-process
==========================

react multi processes support

0.1(10y ago)81643MITPHPPHP &gt;=5.4.0

Since Nov 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/huyanping/react-multi-process)[ Packagist](https://packagist.org/packages/jenner/react-multi-process)[ RSS](/packages/jenner-react-multi-process/feed)WikiDiscussions master Synced 4w ago

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

react-multi-process
===================

[](#react-multi-process)

multi process support to reactphp

Why use react-multi-process
---------------------------

[](#why-use-react-multi-process)

When we use `react/event-loop` to write async programs, we can not be sure that every module is a no-blocking module(sync mysql client...).
So we use multi process to improve the performance of our sync program.

Import
------

[](#import)

```
composer require jenner/react-multi-process
```

How to use it?
--------------

[](#how-to-use-it)

So simple like:

```
$loop = React\EventLoop\Factory::create();
$server = stream_socket_server('tcp://127.0.0.1:4020');
stream_set_blocking($server, 0);
$loop->addReadStream($server, function ($server) use ($loop) {
    $conn = stream_socket_accept($server);
    $data = "pid:" . getmypid() . PHP_EOL;
    $loop->addWriteStream($conn, function ($conn) use (&$data, $loop) {
        $written = fwrite($conn, $data);
        if ($written === strlen($data)) {
            fclose($conn);
            $loop->removeStream($conn);
        } else {
            $data = substr($data, 0, $written);
        }
    });
});

// the second param is the sub process count
$master = new \React\Multi\Master($loop, 20);
$master->start();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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

3877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d132b55d12cd603f8cce9c152999e2b3f98748d56fe8a21adf62d5830d88d87?d=identicon)[huyanping](/maintainers/huyanping)

---

Top Contributors

[![white-poto](https://avatars.githubusercontent.com/u/4362540?v=4)](https://github.com/white-poto "white-poto (53 commits)")

---

Tags

multi-processreactphpsyncreactphpreactreact multireact processreactphp multireactphp processreact multi processes

### Embed Badge

![Health badge](/badges/jenner-react-multi-process/health.svg)

```
[![Health](https://phpackages.com/badges/jenner-react-multi-process/health.svg)](https://phpackages.com/packages/jenner-react-multi-process)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M24.0k](/packages/friendsofphp-php-cs-fixer)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M65](/packages/react-react)[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

691139.1M205](/packages/react-stream)[react/child-process

Event-driven library for executing child processes with ReactPHP.

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

PCNTL bindings for ReactPHP

57290.1k9](/packages/mkraemer-react-pcntl)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8934.9k](/packages/talyssonoc-react-laravel)

PHPackages © 2026

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