Showing 7 of 1,216 result(s)
The setEmptyBarCharacter method can be used to change the character that is used to represent steps on the progress bar that have not yet been completed. On Windows systems this character is set to - by default and on Unix-like systems this...
The setProgressCharacter method is used to customize the character that separates the bar and empty bar characters. The method defines only one parameter—the character to use as the progress character. On Windows systems this character is set to >...
The setBarWidth method is used to set the width of the progress bar. The width be used to set the width of the actual progress bar itself (using the %bar% placeholder) and not any other information supplied by other placeholders. The supplied...
The setMessage method is used to associate a given message (via an argument to the $message parameter) with a named placeholder (via an argument to the $name parameter); these messages can be used in a progress bar format. By default the $name...
You can customize or override format definitions and placeholders by using the setFormatDefinition($name, $format) and setPlaceholderFormatterDefinition($name, callable $callable) methods, respectively. These methods can be useful when dealing you...
Progress bar format strings can utilize the color formatting syntax and strings to have various parts of the progress bar rendered with different styling. The process is similar to how custom styles are used when printing lines of text or...
To add a little extra touch to your progress bars (or console output in general), we can add embed Unicode symbols and pictographs into our console output. This is done by using double quotes and supplying the UTF-8 hex encoding of the character...