PHPackages                             amphp/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. amphp/process

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

amphp/process
=============

A fiber-aware process manager based on Amp and Revolt.

v2.0.3(2y ago)25652.6M—4.1%29[10 issues](https://github.com/amphp/process/issues)20MITPHPPHP &gt;=8.1CI failing

Since Sep 10Pushed 1w ago8 watchersCompare

[ Source](https://github.com/amphp/process)[ Packagist](https://packagist.org/packages/amphp/process)[ Docs](https://amphp.org/process)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-process/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (42)Used By (20)

amphp/process
=============

[](#amphpprocess)

AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. `amphp/process` provides an asynchronous process dispatcher that works on all major platforms (including Windows). It makes running child processes simple.

As Windows pipes are file handles and do not allow non-blocking access, this package makes use of a [process wrapper](https://github.com/amphp/windows-process-wrapper), that provides access to these pipes via sockets. On Unix-like systems it uses the standard pipes, as these can be accessed without blocking there. Concurrency is managed by the [Revolt](https://revolt.run/) event loop.

[![Latest Release](https://camo.githubusercontent.com/8295425d32654840721018eb20c716d7c5503900a9f5c7ef66e22f1b53ad8293/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616d7068702f70726f636573732e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/process/releases)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/amphp/process/blob/master/LICENSE)

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

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require amphp/process

```

The package requires PHP 8.1 or later.

Usage
-----

[](#usage)

Processes are started with `Process::start()`:

```
