Download the PHP package cdoco/ansi-styles without Composer
On this page you can find all versions of the php package cdoco/ansi-styles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package ansi-styles
ansi-styles
ANSI escape codes for styling strings in the terminal
Install
Usage
API
Each style has an open and close property.
Styles
Modifiers
resetbolddimitalic(Not widely supported)underlineinversehiddenstrikethrough(Not widely supported)
Colors
blackredgreenyellowbluemagentacyanwhitegray("bright black")redBrightgreenBrightyellowBrightblueBrightmagentaBrightcyanBrightwhiteBright
Background colors
bgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhitebgBlackBrightbgRedBrightbgGreenBrightbgYellowBrightbgBlueBrightbgMagentaBrightbgCyanBrightbgWhiteBright
Advanced usage
By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
$style->modifier$style->color$style->bgColor
Example
256 / 16 million (TrueColor) support
To use these, call the associated conversion function with the intended output, for example:
License
MIT
All versions of ansi-styles with dependencies
PHP Build Version
Package Version
No informations.
The package cdoco/ansi-styles contains the following files
Loading the files please wait ...