PHPackages                             mdurrant/php-console-color - 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. mdurrant/php-console-color

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

mdurrant/php-console-color
==========================

Extremely simple library for writing to the console in color

1.0.1(11y ago)21.6k1MITPHPPHP &gt;=5.4

Since Mar 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mdurrant/php-console-color)[ Packagist](https://packagist.org/packages/mdurrant/php-console-color)[ RSS](/packages/mdurrant-php-console-color/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PhpConsoleColor
===============

[](#phpconsolecolor)

\####Purpose This lightweight library only serves to make formatted console output code more readable.

Instead of:

```
echo "\033[0;31Foo:\033[0m Bar";
```

We can do:

```
$console->writeLn("Foo: Bar");
```

\####Usage

```
$console = new Console();
$console->write('This');
$console->write('is');
$console->write('a');
$console->writeLn('Test');
$console->writeLn('Hello world!');
```

will output

[![Example output](https://camo.githubusercontent.com/369294009528fab63c00af9c9941cf762744ecf561010416a6679caffbed8dd7/687474703a2f2f692e696d6775722e636f6d2f6a6d4a653876752e706e67)](https://camo.githubusercontent.com/369294009528fab63c00af9c9941cf762744ecf561010416a6679caffbed8dd7/687474703a2f2f692e696d6775722e636f6d2f6a6d4a653876752e706e67)

\####Colors

Color CodeInfoblackBlackredRedgreenGreenyellowYellowblueBluepurplePurplecyanCyanwhiteWhiteblackBBlack BoldredBRed BoldgreenBBlack BoldyellowBYellow BoldblueBBlue BoldpurpleBPurple BoldcyanBCyan BoldwhiteBWhite BoldblackUBlack UnderlinedredURed UnderlinedgreenUBlack UnderlinedyellowUYellow UnderlinedblueUBlue UnderlinedpurpleUPurple UnderlinedcyanUCyan UnderlinedwhiteUWhite Underlined\####License MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4126d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92b956749d8c60c399c9af1c00b0cd2ecc99ecaa047208193990ec5c63fa2329?d=identicon)[mdurrant](/maintainers/mdurrant)

---

Top Contributors

[![mdurrant](https://avatars.githubusercontent.com/u/1095505?v=4)](https://github.com/mdurrant "mdurrant (6 commits)")

### Embed Badge

![Health badge](/badges/mdurrant-php-console-color/health.svg)

```
[![Health](https://phpackages.com/badges/mdurrant-php-console-color/health.svg)](https://phpackages.com/packages/mdurrant-php-console-color)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

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

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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