Download the PHP package phil-waters/process without Composer
On this page you can find all versions of the php package phil-waters/process. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download phil-waters/process
More information about phil-waters/process
Files in phil-waters/process
Download phil-waters/process
More information about phil-waters/process
Files in phil-waters/process
Vendor phil-waters
Package process
Short Description Allows command line commands to be run asynchronously
License MIT
Package process
Short Description Allows command line commands to be run asynchronously
License MIT
Please rate this library. Is it a good library?
Informations about the package process
Process
Process allows command line commands to be run asynchronously.
Usage
Process Methods
cwd
void PhilWaters\Process\Process::cwd(string $cwd)
Sets working directory
- Visibility: public
Arguments
- $cwd string - <p>Working directory</p>
cmd
\PhilWaters\Process\Process PhilWaters\Process\Process::cmd(string $cmd)
Sets the command to run
- Visibility: public
Arguments
- $cmd string - <p>Command to run</p>
option
\PhilWaters\Process\Process PhilWaters\Process\Process::option(string $option, string $value, string $separator)
Adds a command option
- Visibility: public
Arguments
- $option string - <p>Option</p>
- $value string - <p>Value</p>
- $separator string - <p>Separator</p>
arg
\PhilWaters\Process\Process PhilWaters\Process\Process::arg(string $arg)
Adds an argument
- Visibility: public
Arguments
- $arg string - <p>Argument</p>
args
\PhilWaters\Process\Process PhilWaters\Process\Process::args($arg)
Adds arguments
- Visibility: public
Arguments
- $arg mixed
async
\PhilWaters\Process\Process PhilWaters\Process\Process::async()
Configures the process to run asynchronously. The run method will return a waiter instead of the output.
- Visibility: public
log
\PhilWaters\Process\Process PhilWaters\Process\Process::log(string $path, \PhilWaters\Process\number $mode)
Sets the path to a log file
- Visibility: public
Arguments
- $path string - <p>Log file path</p>
- $mode PhilWaters\Process\number - <p>Log write mode (FILE_APPEND)</p>
stdin
\PhilWaters\Process\Process PhilWaters\Process\Process::stdin(mixed $stdin, string $type)
Sets STDIN source (file or pipe)
- Visibility: public
Arguments
- $stdin mixed - <p>File path or value to pass to STDIN</p>
- $type string - <p>file or pipe</p>
stdout
\PhilWaters\Process\Process PhilWaters\Process\Process::stdout(string $path, string $mode)
Sets STDOUT path
- Visibility: public
Arguments
- $path string - <p>File path</p>
- $mode string - <p>Write mode (FILE_APPEND)</p>
stderr
\PhilWaters\Process\Process PhilWaters\Process\Process::stderr(string $path, string $mode)
Sets STDERR path
- Visibility: public
Arguments
- $path string - <p>File path</p>
- $mode string - <p>Write mode (FILE_APPEND)</p>
env
\PhilWaters\Process\Process PhilWaters\Process\Process::env(array $env)
Sets array of environment variables
- Visibility: public
Arguments
- $env array - <p>Array of environment variables</p>
run
\PhilWaters\Process\Waiter|array PhilWaters\Process\Process::run()
Runs the command
- Visibility: public
buildCommand
string PhilWaters\Process\Process::buildCommand()
Builds command string
- Visibility: public
Waiter Methods
wait
boolean PhilWaters\Process\Waiter::wait(\PhilWaters\Process\number $timeout)
Wait for the process to finish
- Visibility: public
Arguments
- $timeout PhilWaters\Process\number - <p>Number of seconds to wait. Pass null to wait indefinitely or until PHP process exits based on max_execution_time</p>
terminate
void PhilWaters\Process\Waiter::terminate(integer $signal)
Terminates process
- Visibility: public
Arguments
- $signal integer - <p>Kill signal</p>
All versions of process with dependencies
PHP Build Version
Package Version
No informations.
The package phil-waters/process contains the following files
Loading the files please wait ....