PHPackages                             testomat/terminal-colour - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. testomat/terminal-colour

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

testomat/terminal-colour
========================

Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes.

1.1.1(6y ago)42731[1 issues](https://github.com/testomat/terminal-colour/issues)[21 PRs](https://github.com/testomat/terminal-colour/pulls)MITPHPPHP ^7.3

Since Mar 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/testomat/terminal-colour)[ Packagist](https://packagist.org/packages/testomat/terminal-colour)[ Docs](http://github.com/testomat/terminal-colour)[ GitHub Sponsors](https://github.com/prisis)[ RSS](/packages/testomat-terminal-colour/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (2)Versions (25)Used By (0)

Terminal color
==============

[](#terminal-color)

- The easiest way to style your text in the command line / terminal
- Change text color to red, green, yellow ...
- Change background color to red, green, yellow ...
- Change text style to bold, dim, underlined, blink ...
- Has support for [0 , 16, 256 and true color](asset/colors.png) ...

Installation
------------

[](#installation)

Run

```
$ composer require testomat/terminal-colour

```

> Note : By default, the Windows command console doesn’t support output coloring. This library disables output coloring for Windows systems. But if your commands or scripts invoke other scripts which emit color sequences, they will be wrongly displayed as raw escape characters. Install the [Cmder](https://cmder.net/), [ConEmu](https://conemu.github.io/), [ANSICON](https://github.com/adoxa/ansicon/releases) or [Mintty](https://mintty.github.io/) (used by default in GitBash and Cygwin) to add coloring support to your Windows command console.

Usage
-----

[](#usage)

### Using Color Styles

[](#using-color-styles)

```
