php-parallel-lint/php-console-highlighter

Highlight PHP code in terminal

v0.5 2020-05-13 07:37 UTC

This package is auto-updated.

Last update: 2020-09-21 17:38:04 UTC


README

Highlight PHP code in console (terminal).

Example

Example

Install

Just run the following command to install it:

composer require --dev php-parallel-lint/php-console-highlighter:"0.*"

Usage

<?php
use JakubOnderka\PhpConsoleColor\ConsoleColor;
use JakubOnderka\PhpConsoleHighlighter\Highlighter;

require __DIR__ . '/vendor/autoload.php';

$highlighter = new Highlighter(new ConsoleColor());

$fileContent = file_get_contents(__FILE__);
echo $highlighter->getWholeFile($fileContent);

Downloads this Month Build Status License