PipesInterface::getFiles()

string[] getFiles() Returns an array of filenames indexed by their related stream in case these pipes use temporary files. Return Value string[]

PipesInterface::getDescriptors()

array getDescriptors() Returns an array of descriptors for the use of proc_open. Return Value array

PipesInterface::close()

close() Closes file handles and pipes.

PipesInterface::areOpen()

bool areOpen() Returns if the current state has open file handles or pipes. Return Value bool

PipesInterface

interface PipesInterface PipesInterface manages descriptors and pipes for the use of proc_open. Constants CHUNK_SIZE Methods array getDescriptors() Returns an array of descriptors for the use of proc_open. string[] getFiles() Returns an array of filenames indexed by their related stream in case these pipes use temporary files. string[] readAndWrite(bool $blocking, bool $close = false) Reads data in file handles and pipes. bool areOpen() Returns if the current state h

PhpStringTokenParser::parseEscapeSequences()

static string parseEscapeSequences(string $str, null|string $quote) Parses escape sequences in strings (all string types apart from single quoted). Parameters string $str String without quotes null|string $quote Quote type Return Value string String with escape sequences parsed

PhpStringTokenParser::parseDocString()

static string parseDocString(string $startToken, string $str) Parses a constant doc string. Parameters string $startToken Doc string start token content (<<<SMTHG) string $str String token content Return Value string Parsed string

PhpStringTokenParser::parse()

static string parse(string $str) Parses a string token. Parameters string $str String token content Return Value string The parsed string

PhpStringTokenParser

class PhpStringTokenParser Methods static string parse(string $str) Parses a string token. static string parseEscapeSequences(string $str, null|string $quote) Parses escape sequences in strings (all string types apart from single quoted). static string parseDocString(string $startToken, string $str) Parses a constant doc string. Details static string parse(string $str) Parses a string token. Parameters string $str String token content

PhpProcess::start()

start(callable $callback = null) Starts the process and returns after writing the input to STDIN. This method blocks until all STDIN data is sent to the process then it returns while the process runs in the background. The termination of the process can be awaited with wait(). The callback receives the type of output (out or err) and some bytes from the output in real-time while writing the standard input to the process. It allows to have feedback from the independent process during