PHPackages                             1happyplace/phpunit-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. [Testing &amp; Quality](/categories/testing)
4. /
5. 1happyplace/phpunit-colors

ActiveLibrary[Testing &amp; Quality](/categories/testing)

1happyplace/phpunit-colors
==========================

Class that adds color to PHPUnit testing output using ANSI escape coding

v1.2(6y ago)548.2k↓37.9%13MITPHPPHP &gt;=5.3.0CI failing

Since Jul 13Pushed 4y agoCompare

[ Source](https://github.com/1HappyPlace/phpunit-colors)[ Packagist](https://packagist.org/packages/1happyplace/phpunit-colors)[ Docs](http://clio.1happyplace.com/utilities/phpunit-color-display.html)[ RSS](/packages/1happyplace-phpunit-colors/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (3)

\#PHPUnitColors\\Display# [clio.1happyplace.com/utilities/phpunit-color-display.html](http://clio.1happyplace.com/utilities/phpunit-color-display.html)

The Display class outputs colored output that will work on virtually any terminal. It utilizes the escape coding that goes back to the days of the DEC VT-100. It can be used anywhere, but is geared toward messages during PHPUnit tests cases.

It is a standalone static class with no dependencies.

The following code will create the output below:

```
    // echo out the escaped strings to create different levels of warnings
    echo Display::warning("Warning!");
    echo Display::caution("Caution...");
    echo Display::OK("OK to go!");

    // place the escaped string in the $message field to light up your output
    $this->assertSame("one","two",Display::caution("This assertion has intentionally failed"));

```

[![](https://camo.githubusercontent.com/17263e1d2cc376f3434c617c0f8f5f1a31044f2da8afc0d022a721b3c82ec595/687474703a2f2f636c696f2e316861707079706c6163652e636f6d2f5f696d616765732f504850556e6974436f6c6f72732d446973706c61792e706e67)](https://camo.githubusercontent.com/17263e1d2cc376f3434c617c0f8f5f1a31044f2da8afc0d022a721b3c82ec595/687474703a2f2f636c696f2e316861707079706c6163652e636f6d2f5f696d616765732f504850556e6974436f6c6f72732d446973706c61792e706e67)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~424 days

Total

4

Last Release

2324d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2673ea2147720988b45a2ccd07d154e063b2ad1c5a5820521319d4a27c7aebc1?d=identicon)[1happyplace](/maintainers/1happyplace)

---

Top Contributors

[![1HappyPlace](https://avatars.githubusercontent.com/u/7793595?v=4)](https://github.com/1HappyPlace "1HappyPlace (14 commits)")

---

Tags

phpunitoutputcolors

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/1happyplace-phpunit-colors/health.svg)

```
[![Health](https://phpackages.com/badges/1happyplace-phpunit-colors/health.svg)](https://phpackages.com/packages/1happyplace-phpunit-colors)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

56426.3M456](/packages/dg-bypass-finals)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19254.9M1.4k](/packages/phpspec-prophecy-phpunit)

PHPackages © 2026

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