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

ActiveLibrary

wyrihaximus/react-child-process-promise
=======================================

Wrapping ticks into a promise

3.0.0(5y ago)12315.2k↓21%3[2 PRs](https://github.com/WyriHaximus/reactphp-child-process-promise/pulls)2MITPHPPHP ^7.0|^8.0

Since Jan 2Pushed 8mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (7)Versions (10)Used By (2)

ReactPHP Child Process Promise
==============================

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

[![Linux Build Status](https://camo.githubusercontent.com/bd5df0355123f74f80e32d0a5a35d9417aa3ba05bc869b028c1c4a0ebc453a9d/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f72656163747068702d6368696c642d70726f636573732d70726f6d6973652e706e67)](https://travis-ci.org/WyriHaximus/reactphp-child-process-promise)[![Latest Stable Version](https://camo.githubusercontent.com/77e4a98b8dec739090cf6562aea7214a5d9009bfb894c0632660870d7985f1b4/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d70726f6d6973652f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-child-process-promise)[![Total Downloads](https://camo.githubusercontent.com/933f36a01baabfc5c4a650ce8f2f004841f492765d8166b222bde09506b3af3c/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d70726f6d6973652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-child-process-promise)[![Code Coverage](https://camo.githubusercontent.com/34395fd9dd4d62cf39e9ac99f60fc1a0c36abfedcd2f6fc23becdf65be5420c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d6368696c642d70726f636573732d70726f6d6973652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-child-process-promise/?branch=master)[![License](https://camo.githubusercontent.com/c55ef5c7f20e94195d88b3c7f8e1539f69a45642125c4319b30894abf9247f9d/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d6368696c642d70726f636573732d70726f6d6973652f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/react-child-process-promise)[![PHP 7 ready](https://camo.githubusercontent.com/e94b41c080fa1a1fc1bcfeee6660b6c02c9a99025ef1f8f22f48a9e410c5773b/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f72656163747068702d6368696c642d70726f636573732d70726f6d6973652f62616467652e737667)](https://travis-ci.org/WyriHaximus/reactphp-child-process-promise)

Wrap a [ReactPHP child process](https://github.com/reactphp/child-process) in a promise, once the process ends the promise resolves with the exit code and `STDERR` and `STDOUT` buffers.

### 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-promise

```

Examples
--------

[](#examples)

```
\WyriHaximus\React\childProcessPromise($loop, new Process('uptime'))->then(function ($result) {
    var_export($result);
    /**
     * Example output:
     * WyriHaximus\React\ProcessOutcome::__set_state(array(
     *   'exitCode' => 0,
     *   'stderr' => 'Error messages will go in this buffer',
     *   'stdout' => 'Normal output will go in this buffer',
     * ))
    */
});
```

For ready to use examples see the [examples](https://github.com/WyriHaximus/reactphp-child-process-promise/tree/master/examples) directory

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

Copyright 2016 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance43

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 63% 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 ~359 days

Recently: every ~449 days

Total

6

Last Release

1991d ago

Major Versions

1.0.1 → 2.0.02016-01-08

2.0.2 → 3.0.02020-12-04

PHP version history (2 changes)1.0.0PHP ^5.4||^7.0

3.0.0PHP ^7.0|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (51 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (14 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")

---

Tags

child-processhacktoberfestphppromisereactphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wyrihaximus-react-child-process-promise/health.svg)

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

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[php-pm/php-pm

PHP-PM is a process manager, supercharger and load balancer for PHP applications.

6.6k441.3k8](/packages/php-pm-php-pm)[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[laravel-workflow/laravel-workflow

Durable workflow engine that allows users to write long running persistent distributed workflows (orchestrations) in PHP powered by Laravel queues.

1.2k446.6k6](/packages/laravel-workflow-laravel-workflow)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)

PHPackages © 2026

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