PHPackages                             joshdifabio/future-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. [Queues &amp; Workers](/categories/queues)
4. /
5. joshdifabio/future-process

ActiveLibrary[Queues &amp; Workers](/categories/queues)

joshdifabio/future-process
==========================

Process execution for PHP using futures and promises

v0.2.0(11y ago)253973[4 issues](https://github.com/joshdifabio/future-process/issues)[1 PRs](https://github.com/joshdifabio/future-process/pulls)MITPHPPHP &gt;=5.3.0

Since Mar 1Pushed 11y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Future Process
==============

[](#future-process)

[![Build Status](https://camo.githubusercontent.com/8a696f8c12d4f06a5bf06e8215ef8c6a3cc749d0d9bcb6ad849eec6fb42a3b4e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f73686469666162696f2f6675747572652d70726f636573732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/joshdifabio/future-process)[![Codecov](https://camo.githubusercontent.com/97ad7601c59b3528a1d82f6d4b0c1d94108f7f69bc60f44f87eae3484fb9e93b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6a6f73686469666162696f2f6675747572652d70726f636573732e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/joshdifabio/future-process)[![Code Quality](https://camo.githubusercontent.com/ae3ead1dca70211e48daa8041c7f0af7128ffb36cf3c9af9e457ed490a833018/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a6f73686469666162696f2f6675747572652d70726f636573732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/joshdifabio/future-process/)

Introduction
------------

[](#introduction)

Future Process is object-oriented `proc_open` with an asynchronous API and automatic queueing of commands.

Usage
-----

[](#usage)

```
// we use Shell to start new processes
$shell = new \FutureProcess\Shell;

// run a maximum of 5 concurrent processes - additional ones will be queued
$shell->setProcessLimit(5);

// let's download this package's license file from GitHub using wget
$url = 'https://raw.githubusercontent.com/joshdifabio/future-process/master/LICENSE';
$process = $shell->startProcess("wget -O - $url");
```

### Non-blocking

[](#non-blocking)

We can consume the process output using [promises](https://github.com/reactphp/promise).

```
// this will not block, even if the process is queued
$process->then(function ($process) {
    echo "Downloading file...\n";
});

// this will not block, even if the process is queued
$process->getResult()->then(function ($result) {
    echo "File contents:\n{$result->readFromPipe(1)}\n";
});

// this will block until all processes have exited
$shell->wait();
```

### Blocking

[](#blocking)

We can also consume the process output synchronously.

```
// this will block until the process starts
$process->wait();
echo "Downloading file...\n";

// this will block until the process exits
echo "File contents:\n{$process->getResult()->readFromPipe(1)}\n";
```

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

[](#installation)

Install Future Process using [composer](https://getcomposer.org/).

```
composer require joshdifabio/future-process

```

License
-------

[](#license)

Future Process is released under the [MIT](https://github.com/joshdifabio/future-process/blob/master/LICENSE) license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Every ~35 days

Total

2

Last Release

4060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18f6db1b0f349a143a47f8a3c490b56ad644aa62669a0015bed16a98cdfa1985?d=identicon)[joshdifabio](/maintainers/joshdifabio)

---

Top Contributors

[![joshdifabio](https://avatars.githubusercontent.com/u/5609851?v=4)](https://github.com/joshdifabio "joshdifabio (127 commits)")

---

Tags

promiseprocessreactchild-process

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/joshdifabio-future-process/health.svg)

```
[![Health](https://phpackages.com/badges/joshdifabio-future-process/health.svg)](https://phpackages.com/packages/joshdifabio-future-process)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[react/promise

A lightweight implementation of CommonJS Promises/A for PHP

2.5k361.9M563](/packages/react-promise)[php-http/promise

Promise used for asynchronous HTTP requests

1.8k308.8M32](/packages/php-http-promise)[react/promise-timer

A trivial implementation of timeouts for Promises, built on top of ReactPHP.

34141.9M96](/packages/react-promise-timer)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7426.5M37](/packages/bunny-bunny)[react/promise-stream

The missing link between Promise-land and Stream-land for ReactPHP

11512.9M45](/packages/react-promise-stream)

PHPackages © 2026

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