Simple abstraction for starting and stopping processes

1.0.0 2017-01-08 21:39 UTC

This package is auto-updated.

Last update: 2024-02-19 00:12:49 UTC


Build Status Scrutinizer Code Quality

Simple abstraction for starting and stopping processes.


composer require asyncphp/process


use AsyncPHP\Process\PosixHandler;

$loop->start($id = "server", $command = "", $background = true);


This library uses exec and ps to start and find processes. It will not work on systems where exec has been disabled, or where ps -e/E does not return the environment variables of a process. I've tested on macOS Sierra and Ubuntu Trusty 14.04.


This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with public visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.