Copied!

Helps outputting debug information when running an external program from a command.

An external program can be a Process, an HTTP request, or anything else.

CloneableInstantiable
Methods
public static Symfony\Component\Console\Helper\Helper::formatMemory(int $memory)
public static Symfony\Component\Console\Helper\Helper::formatTime(int|float $secs)
public Symfony\Component\Console\Helper\Helper::getHelperSet() : ?Symfony\Component\Console\Helper\HelperSet
public getName() : string
public static Symfony\Component\Console\Helper\Helper::length(?string $string) : int
 

Returns the length of a string, using mb_strlen if it is available.

The length is related to how many bytes the string will use.

public progress(string $id, string $buffer, bool $error = false, string $prefix = 'OUT', string $errorPrefix = 'ERR') : string
 

Adds progress to a formatting session.

public static Symfony\Component\Console\Helper\Helper::removeDecoration(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, ?string $string)
public Symfony\Component\Console\Helper\Helper::setHelperSet(?Symfony\Component\Console\Helper\HelperSet $helperSet = NULL)
public start(string $id, string $message, string $prefix = 'RUN') : string
 

Starts a debug formatting session.

public stop(string $id, string $message, bool $successful, string $prefix = 'RES') : string
 

Stops a formatting session.

public static Symfony\Component\Console\Helper\Helper::substr(?string $string, int $from, ?int $length = NULL) : string
 

Returns the subset of a string, using mb_substr if it is available.

public static Symfony\Component\Console\Helper\Helper::width(?string $string) : int
 

Returns the width of a string, using mb_strwidth if it is available.

The width is how many characters positions the string will use.

Properties
protected Symfony\Component\Console\Helper\Helper::$helperSet
Constants
private Symfony\Component\Console\Helper\DebugFormatterHelper::COLORS = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'default']
Properties
private int $count
private array $started
Methods
private getBorder(string $id) : string
Methods
public static Symfony\Component\Console\Helper\Helper::formatMemory(int $memory)
public static Symfony\Component\Console\Helper\Helper::formatTime(int|float $secs)
public static Symfony\Component\Console\Helper\Helper::length(?string $string) : int
 

Returns the length of a string, using mb_strlen if it is available.

The length is related to how many bytes the string will use.

public static Symfony\Component\Console\Helper\Helper::removeDecoration(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, ?string $string)
public static Symfony\Component\Console\Helper\Helper::substr(?string $string, int $from, ?int $length = NULL) : string
 

Returns the subset of a string, using mb_substr if it is available.

public static Symfony\Component\Console\Helper\Helper::width(?string $string) : int
 

Returns the width of a string, using mb_strwidth if it is available.

The width is how many characters positions the string will use.

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration