Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / jakub-onderka / php-console-highlighter / README.md
1 PHP Console Highlighter
2 =======================
3
4 Highlight PHP code in console (terminal).
5
6 Example
7 -------
8 ![Example](http://jakubonderka.github.io/php-console-highlight-example.png)
9
10 Install
11 -------
12
13 Just create a `composer.json` file and run the `php composer.phar install` command to install it:
14
15 ```json
16 {
17     "require": {
18         "jakub-onderka/php-console-highlighter": "0.*"
19     }
20 }
21 ```
22
23 Usage
24 -------
25 ```php
26 <?php
27 use JakubOnderka\PhpConsoleColor\ConsoleColor;
28 use JakubOnderka\PhpConsoleHighlighter\Highlighter;
29
30 require __DIR__ . '/vendor/autoload.php';
31
32 $highlighter = new Highlighter(new ConsoleColor());
33
34 $fileContent = file_get_contents(__FILE__);
35 echo $highlighter->getWholeFile($fileContent);
36 ```
37
38 ------
39
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)