Skip to content

01 – Getting Started

Nicholas Jordon edited this page Aug 30, 2016 · 3 revisions

Installation Via Composer

Run composer require projectcleverweb/php-color from the command line OR add the below line to your composer.json file and run composer update.

"require": {
	"projectcleverweb/php-color":"~1.0"
}

Installation Via Download

  1. Download the latest release from the Releases Page on Github.
  2. Add the autoloader somewhere in your application. (e.g. require_once __DIR__.'/PHP-Color/autoload.php')

Setup

While this is optional, it is recommended to use PHP's use … as … syntax, like below:

use projectcleverweb\color\main as color;


Previous Page - Wiki Home     Next Page - Error Handling