PHPackages                             gobwas/shellstyle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gobwas/shellstyle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gobwas/shellstyle
=================

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes

1.0.0-alpha.1(13y ago)0162GPL3PHPPHP &gt;=5.3.0

Since Jan 8Pushed 13y ago1 watchersCompare

[ Source](https://github.com/gobwas/ShellStyle)[ Packagist](https://packagist.org/packages/gobwas/shellstyle)[ Docs](http://github.com/gobwas/shellstyle)[ RSS](/packages/gobwas-shellstyle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

README
======

[](#readme)

ShellStyle
----------

[](#shellstyle)

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes:

Usage
-----

[](#usage)

Usage of ShellStyle is quite simple:

```
use Gobwas\ShellStyle\ShellStyle;

// First way to define style
$green = new ShellStyle();
$green
    ->addStyle(ShellStyle::FOREGROUND_GREEN)
    ->addStyle(ShellStyle::STYLE_BOLD);

// Another way to define style
$yellow = new ShellStyle(array(ShellStyle::FOREGROUND_YELLOW));

echo $green->parse("Hello");
echo $yellow->parse("World!");

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

4878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/362e06b4eb7d119e5479dd2a70e2e50a39426d69107096eb9c53c151d6378124?d=identicon)[gobwas](/maintainers/gobwas)

---

Top Contributors

[![gobwas](https://avatars.githubusercontent.com/u/675117?v=4)](https://github.com/gobwas "gobwas (3 commits)")

---

Tags

colorechooutput

### Embed Badge

![Health badge](/badges/gobwas-shellstyle/health.svg)

```
[![Health](https://phpackages.com/badges/gobwas-shellstyle/health.svg)](https://phpackages.com/packages/gobwas-shellstyle)
```

###  Alternatives

[spatie/color

A little library to handle color conversions

38118.9M28](/packages/spatie-color)[mexitek/phpcolors

A series of methods that let you manipulate colors. Just incase you ever need different shades of one color on the fly.

5003.6M18](/packages/mexitek-phpcolors)[mistic100/randomcolor

Generate attractive random colors

2431.4M6](/packages/mistic100-randomcolor)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.1M10](/packages/ssnepenthe-color-utils)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)

PHPackages © 2026

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