1 PHP Console Highlighter
2 =======================
4 Highlight PHP code in console (terminal).
8 ![Example](http://jakubonderka.github.io/php-console-highlight-example.png)
13 Just create a `composer.json` file and run the `php composer.phar install` command to install it:
18 "jakub-onderka/php-console-highlighter": "0.*"
27 use JakubOnderka\PhpConsoleColor\ConsoleColor;
28 use JakubOnderka\PhpConsoleHighlighter\Highlighter;
30 require __DIR__ . '/vendor/autoload.php';
32 $highlighter = new Highlighter(new ConsoleColor());
34 $fileContent = file_get_contents(__FILE__);
35 echo $highlighter->getWholeFile($fileContent);
40 [![Downloads this Month](https://img.shields.io/packagist/dm/jakub-onderka/php-console-highlighter.svg)](https://packagist.org/packages/jakub-onderka/php-console-highlighter)
41 [![Build Status](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter)
42 [![License](https://poser.pugx.org/jakub-onderka/php-console-highlighter/license.svg)](https://packagist.org/packages/jakub-onderka/php-console-highlighter)