PHPackages                             wyrihaximus/react-child-process-messenger - 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. wyrihaximus/react-child-process-messenger

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

wyrihaximus/react-child-process-messenger
=========================================

Messenger decorator for react/child-process

4.0.5(1y ago)32279.4k↓29.3%15[20 PRs](https://github.com/WyriHaximus/reactphp-child-process-messenger/pulls)4MITPHPPHP ^8 || ^7.4

Since Aug 1Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-child-process-messenger)[ Packagist](https://packagist.org/packages/wyrihaximus/react-child-process-messenger)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-react-child-process-messenger/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (66)Used By (4)

ReactPHP Child Process Messenger
================================

[](#reactphp-child-process-messenger)

[![Continuous Integration](https://github.com/WyriHaximus/reactphp-child-process-messenger/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/WyriHaximus/reactphp-child-process-messenger/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/886bd554a37748e67552d758a1456ffb9a0d21f2d1797814c296e028ed05d9a5/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d6d657373656e6765722f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-child-process-messenger)[![Total Downloads](https://camo.githubusercontent.com/591101719417c55a5b264a63c05026e49139731104770bc5f3bedd4d51ca48bf/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d6d657373656e6765722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-child-process-messenger)[![Code Coverage](https://camo.githubusercontent.com/d1bd9241f60a25e55de3f386e9330f1dcf42fe857fc0100b383411c5f5605042/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d6368696c642d70726f636573732d6d657373656e6765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-child-process-messenger/?branch=master)[![License](https://camo.githubusercontent.com/e7173a8cfeb2d3f7d773d32e0f67b9c4fb50d337ba46c8ba5affe82715198d7d/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d6d657373656e6765722f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/react-child-process-messenger)

Plain messages and RPC style wrapper around [`react/child-process`](https://github.com/reactphp/child-process). For pooling messengers take a look at [`wyrihaximus/react-child-process-pool`](https://github.com/WyriHaximus/reactphp-child-process-pool)

### Installation

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.

```
composer require wyrihaximus/react-child-process-messenger

```

Hassle less Example
-------------------

[](#hassle-less-example)

While this package supports several ways of setting up communication between parent and child the simplest way is to create class implementing `WyriHaximus\React\ChildProcess\Messenger\ChildInterface`. Up on calling `create` everything is set up and created to handle supported `RPC`'s and messages.

```
