PHPackages                             pointybeard/helpers-cli-colour - 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. pointybeard/helpers-cli-colour

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

pointybeard/helpers-cli-colour
==============================

Provides colour constants and a simple way to colourise strings for use on the command-line.

1.0.2(7y ago)04.1k↓22.7%4MITPHPPHP &gt;=5.6.6

Since May 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pointybeard/helpers-cli-colour)[ Packagist](https://packagist.org/packages/pointybeard/helpers-cli-colour)[ Docs](https://github.com/pointybeard/helpers-cli-colour)[ RSS](/packages/pointybeard-helpers-cli-colour/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (4)

PHP Helpers: Command-line Colour
================================

[](#php-helpers-command-line-colour)

- Version: v1.0.2
- Date: May 05 2019
- [Release notes](https://github.com/pointybeard/helpers-cli-colour/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-cli-colour)

Provides colour constants and a simple way to colourise strings for use on the command-line.

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

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/helpers-cli-colour` or add `"pointybeard/helpers-cli-colour": "~1.0"` to your `composer.json` file.

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

### Requirements

[](#requirements)

There are no particuar requirements for this library other than PHP 5.6 or greater.

To include all the [PHP Helpers](https://github.com/pointybeard/helpers) packages on your project, use `composer require pointybeard/helpers` or add `"pointybeard/helpers": "~1.0"` to your composer file.

Usage
-----

[](#usage)

Here is an example of how to use the Colour class:

```
