PHPackages                             shakibonline/php-cli-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. shakibonline/php-cli-color

ActiveLibrary

shakibonline/php-cli-color
==========================

Simple coloring library for PHP CLI

0.0.1(8y ago)010[1 issues](https://github.com/shakibonline/PHPCLIColor/issues)MITPHP

Since Aug 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shakibonline/PHPCLIColor)[ Packagist](https://packagist.org/packages/shakibonline/php-cli-color)[ RSS](/packages/shakibonline-php-cli-color/feed)WikiDiscussions master Synced 3d ago

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

PHPCLIColor
-----------

[](#phpclicolor)

Print colorful text in PHP-CLI

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

[](#installation)

```
composer require shakibonline/php-cli-color

```

Usage
-----

[](#usage)

```
    $text = "# Incoming Update: 3" ;
    echo ColorFactory::text($text)->color('magenta') . PHP_EOL;
```

Valid Colors
------------

[](#valid-colors)

```
array(
        'reset'            => '0',
        'bold'             => '1',
        'dark'             => '2',
        'italic'           => '3',
        'underline'        => '4',
        'blink'            => '5',
        'reverse'          => '7',
        'concealed'        => '8',

        'default'          => '39',
        'black'            => '30',
        'red'              => '31',
        'green'            => '32',
        'yellow'           => '33',
        'blue'             => '34',
        'magenta'          => '35',
        'cyan'             => '36',
        'light_gray'       => '37',

        'dark_gray'        => '90',
        'light_red'        => '91',
        'light_green'      => '92',
        'light_yellow'     => '93',
        'light_blue'       => '94',
        'light_magenta'    => '95',
        'light_cyan'       => '96',
        'white'            => '97',

        'bg_default'       => '49',
        'bg_black'         => '40',
        'bg_red'           => '41',
        'bg_green'         => '42',
        'bg_yellow'        => '43',
        'bg_blue'          => '44',
        'bg_magenta'       => '45',
        'bg_cyan'          => '46',
        'bg_light_gray'    => '47',

        'bg_dark_gray'     => '100',
        'bg_light_red'     => '101',
        'bg_light_green'   => '102',
        'bg_light_yellow'  => '103',
        'bg_light_blue'    => '104',
        'bg_light_magenta' => '105',
        'bg_light_cyan'    => '106',
        'bg_white'         => '107',
    )
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82803ca3428032359908222d5d36e99b2309be0a0e608ad2cce611d8bc6004d9?d=identicon)[shakibonline](/maintainers/shakibonline)

---

Top Contributors

[![abbas980301](https://avatars.githubusercontent.com/u/17107543?v=4)](https://github.com/abbas980301 "abbas980301 (13 commits)")

---

Tags

phpphp-cli

### Embed Badge

![Health badge](/badges/shakibonline-php-cli-color/health.svg)

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

PHPackages © 2026

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