PHPackages                             jfcherng/php-color-output - 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. jfcherng/php-color-output

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

jfcherng/php-color-output
=========================

Make your PHP command-line application colorful.

3.0.0(4y ago)145.0M—5.3%22MITPHPPHP &gt;=7.1.3CI failing

Since Mar 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jfcherng/php-color-output)[ Packagist](https://packagist.org/packages/jfcherng/php-color-output)[ Fund](https://www.paypal.me/jfcherng/5usd)[ RSS](/packages/jfcherng-php-color-output/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (14)Used By (2)

php-color-output
================

[](#php-color-output)

[![GitHub Workflow Status (branch)](https://camo.githubusercontent.com/dec193ddde0c21ed596b22640bcc2b45eebe293cce002f0e8f245034313ea145/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a66636865726e672f7068702d636f6c6f722d6f75747075742f7068702e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/jfcherng/php-color-output/actions)[![Packagist](https://camo.githubusercontent.com/7280a5c233b1a2e47e93720a53c646a957612b26e213423c01c73af4866963bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a66636865726e672f7068702d636f6c6f722d6f75747075743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jfcherng/php-color-output)[![Packagist Version](https://camo.githubusercontent.com/1ee951e46bf68f2dff846f5a5af7396702ecd6fccd9eba29ec922ebe020b04bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a66636865726e672f7068702d636f6c6f722d6f75747075743f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jfcherng/php-color-output)[![Project license](https://camo.githubusercontent.com/e1bf99804ad1935dde6e119a807829af3c007870cd45c650b2557f21f6088465/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a66636865726e672f7068702d636f6c6f722d6f75747075743f7374796c653d666c61742d737175617265)](https://github.com/jfcherng/php-color-output/blob/master/LICENSE)[![GitHub stars](https://camo.githubusercontent.com/7a5f636a0399ef533efcb866cf39cea0164e0ab621b2fbfefa8f0107d4a2a7fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6a66636865726e672f7068702d636f6c6f722d6f75747075743f7374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/jfcherng/php-color-output/stargazers)[![Donate to this project using Paypal](https://camo.githubusercontent.com/b3f28a26023aadc92afb98cdbcec5f66ed5b471222cf2af28454b871d93372f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d626c75652e7376673f7374796c653d666c61742d737175617265266c6f676f3d70617970616c)](https://www.paypal.me/jfcherng/5usd)

[![demo.gif](https://github.com/jfcherng/php-color-output/raw/gh-pages/images/demo.gif?raw=true)](https://github.com/jfcherng/php-color-output/blob/gh-pages/images/demo.gif?raw=true)

The above screenshot is the output of `demo.php`. See the [Example](#example) section.

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

[](#installation)

```
composer require jfcherng/php-color-output

```

Available Styles
----------------

[](#available-styles)

BackgroundForegroundCompoundSpecialAliasb\_blackf\_blackf\_dark\_grayblinkb (bold)b\_bluef\_bluef\_light\_blueboldblk (blink)b\_cyanf\_brownf\_light\_cyandimh (hidden)b\_greenf\_cyanf\_light\_greenhiddenrev (reverse)b\_light\_grayf\_greenf\_light\_purpleresetrst (reset)b\_magentaf\_light\_grayf\_light\_redreverseu (underline)b\_redf\_normalf\_whiteunderline-b\_yellowf\_purplef\_yellow---f\_red---Functions and Methods
---------------------

[](#functions-and-methods)

```
