PHPackages                             touki/console-colors - 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. touki/console-colors

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

touki/console-colors
====================

Object Oriented Console Colors Playground

116PHP

Since Dec 16Pushed 12y agoCompare

[ Source](https://github.com/touki653/console-colors)[ Packagist](https://packagist.org/packages/touki/console-colors)[ RSS](/packages/touki-console-colors/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Command Line Colors
=======================

[](#php-command-line-colors)

This library is just a for-fun-playground to use colors in an UNIX console, the object oriented way.

\## Installation

1. Get Composer at
2. Type in command line

```
composer.phar require touki/console-colors
```

And there you go

Usage
-----

[](#usage)

The `Touki\ConsoleColors\Formatter` interface looks like this

```

```

For choosing a `Touki\ConsoleColors\ColorInterface` you can pick any in [the list of predefined](https://github.com/touki653/console-colors/tree/master/src/Touki/ConsoleColors/Color) ones.
Please note that `Color\Light` and `Color\Color` have a special behaviour specified below.

The same goes for a `Touki\ConsoleColors\StyleInterface`. You can pick any in the [list of predefined](https://github.com/touki653/console-colors/tree/master/src/Touki/ConsoleColors/Style) ones.

```

```

The `Color\Light` color needs a `ColorInterface` as a constructor parameter. (Cannot be combined with himself)

```

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38908?v=4)[Touki](/maintainers/Touki)[@Touki](https://github.com/Touki)

---

Top Contributors

[![touki653](https://avatars.githubusercontent.com/u/1842356?v=4)](https://github.com/touki653 "touki653 (12 commits)")

### Embed Badge

![Health badge](/badges/touki-console-colors/health.svg)

```
[![Health](https://phpackages.com/badges/touki-console-colors/health.svg)](https://phpackages.com/packages/touki-console-colors)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
