Download the PHP package amphp/process without Composer
On this page you can find all versions of the php package amphp/process. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amphp/process
More information about amphp/process
Files in amphp/process
Package process
Short Description A fiber-aware process manager based on Amp and Revolt.
License MIT
Homepage https://amphp.org/process
Informations about the package process
amphp/process
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, 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 event loop.
Installation
This package can be installed as a Composer dependency.
The package requires PHP 8.1 or later.
Usage
Processes are started with Process::start()
:
Custom Working Directory
Processes are started with the working directory of the current process by default. The working directory can be customized to another directory if needed:
Custom Environment Variables
Processes are started with the environment variables of the current process by default. The environment can be customized by passing an associative array mapping variables names to their values:
Versioning
amphp/process
follows the semver semantic versioning specification like all other amphp
packages.
Security
If you discover any security related issues, please use the private security issue reporter instead of using the public issue tracker.
License
The MIT License (MIT). Please see LICENSE
for more information.
All versions of process with dependencies
amphp/amp Version ^3
amphp/byte-stream Version ^2
amphp/sync Version ^2
revolt/event-loop Version ^1 || ^0.2